Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
`EditorApplication` is documented as an Editor-only class. #pragma strict import UnityEditor; @MenuItem ("Example/example") static function SaveTempScene() { var path : String = EditorApplication.currentScene; Debug.Log(path); var sceneName = System.IO.Path.GetFileNameWithoutExtension(path); Debug.Log(sceneName); }

Viewing all articles
Browse latest Browse all 959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>