- Home /
Unity 4.3 editor gets permanently messed up if you change code while game is running
If I accidentally change some code and save it in monodevelop while the game is running in the editor sometimes the editor crashes but sometimes I end up getting a permanent error that always shows up from then on and that I can never get rid off even if I undo the changes I made.
In this scenario I get these 2 errors everytime I stop the game running after playing it in the editor..
Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
!IsPlayingOrAllowExecuteInEditMode ()
I've found the only way to get rid of these is to revert the entire project to the last save where these didnt occur
Your answer
Follow this Question
Related Questions
ExecuteInEditMode : scene wants to be saved even after no change 1 Answer
Manually triggering a script from the editor (utility, macro etc.) 1 Answer
Execute in EditMode every time a script's parameter is changed 0 Answers
Deactive ExceuteInEditMode for Methods of Inherited Classes 1 Answer
How to prevent editor to set the scene dirty if a script changes a mesh (@ExecuteInEditMode) 1 Answer