- Home /
When I restart the level, everything doesn't move
I have a restart button in the top right corner of my screen, but when I click it, it reloads, but there are no lights, and I can't move my player or look around. I have a function set up with the onClick event, that does Application.LoadLevel(Application.loadedLevel). Please help, I've spent a long time researching this but cannot find anything. Thanks in advance.
Answer by tomhughes · Mar 31, 2015 at 10:08 AM
Hmm, strange. i had a similar problem in the past with the lights which ended up with me having to turn off "continuous baking" (windows/lighting/scene/). could maybe try that
When I tried this, it made everything stop the first time I ran it. Then, I tried it again, and it worked the first time, but the same thing happened when I restarted it.
Answer by Ludwant · Apr 01, 2015 at 08:59 AM
Just for anyone who sees this post in the future with a similar issue, I solved the problem. Turns out, there were multiple. First, I needed to set static variables to their initial value in the Awake() function. Then, I needed to turn continuous baking off and build it so that the lighting stays consistent. The lighting issue is a bug, and it has been reported. Kudos to user Shadeless for figuring it out!
Your answer
Follow this Question
Related Questions
GUIText Problem With MENU 1 Answer
Gui Button Solid 2 Answers
On Clicked, On Released GUI Button ? 2 Answers
GUI button working with GUI Textfield 0 Answers
Use a key to open a GUI? 2 Answers