- Home /
Scene freezes when reloaded from another scene.
Here's the scenerio: My main menu scene works fine when game starts. Then you go to a mission select scene and select you mission, which in turn loads the next scene.
Now when I pause and and click my button to return to say the mission select, or the main menu screen, either will load, but they freeze and i'm not able to click anything, and none of the gameobjects will do anything.
Answer by kurotatsu · Apr 21, 2012 at 12:44 AM
The problem was that my game was remaining paused as I was switching screens, so I wrote a small script to make sure my scene is unpaused on upon loading.
Here it is(Javascript): function OnLevelWasLoaded(){ pauseEnabled = false;
}
Hello i ave same problem but unity get me herror with this java script (Javascript): function OnLevelWasLoaded(){ pauseEnabled = false;
}
Thank you very much, dude. You gave me the answer to remove this major bug. I would like to add, I had to create a function that reset the game every time it loads, as Time.timescale was not the only thing I had changed prior to exiting the first time.
I almost exploded with confusion due to this issue. Thanks a bunch!
Your answer
Follow this Question
Related Questions
Unity is freezing on certain Scene!? 3 Answers
Need help converting project for Unity 5.2 0 Answers
Main Scene keeps becoming corrupted randomly. 0 Answers
Scene does not work, no error, no crash? 1 Answer
Unity 5 freezing on saving scene. 0 Answers