I am using a script which executes during edit mode.(@script ExecuteInEditMode();) and I need to know when my user decides to load a new scene inside the editor. How do I do this?
Jul 12 '12 at 06:12 AM
Application.isPlaying will be false when code executes in the editor and the game is not running.
Jul 12 '12 at 06:33 AM
I'd like to know this too. My best idea right now is to check "EditorApplication.currentScene" in "EditorWindow.Update" to see if it has changed since last time but it's not a very elegant solution...
Sep 25 '12 at 09:35 AM
Sep 25 '12 at 09:34 AM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Jul 12 '12 at 06:12 AM
Seen: 407 times
Last Updated: Sep 25 '12 at 09:35 AM
Save & Load Game question
how to script in different scenes?
make a loading screen
New scene for minigame or not?
Webplayer hangs on loading scene
[SOLVED]Static Loading screen help
Code gone wrong HELP
Prevent Object From Loading
load next scene during current scene