Reputation: 20322
There are no compile errors or warnings. My game just starts paused. I can look around but everything is frozen. I even tried to call Time.timeScale = 1;
from various start functions. "Error on Pause" is turned off.
Restarting Unity has no effect.
Why is this happening?
HINT:
I figured out that calling Time.timeScale = 1;
was not working because the gameObject where the script was attached to, was not set to active.
Upvotes: 1
Views: 1243
Reputation: 1
If anyone else has this error and the described solutions have not helped, check that the Editors Pause on Error option is not checked. If you go the console window you will see that tab option highlighted at the top of the window if it is on, unticking that will allow the game to play if it is starting paused because of an error. This option being turned on would likely be your issue if the issue replicates across different projects.
Upvotes: 0
Reputation: 2572
Check your Time Manager. Sometimes it gets randomly corrupted and the scale drops to Zero. Time Manager (menu: Edit > Project Settings > Time)
Upvotes: 3
Reputation: 140
Have you tried to force unpause in script?
EditorApplication.isPlaying = true;
Game can start paused also because of some unknown problems with assests so you can try to reimport them. If it doesn't help your next move should be to reinstall unity.
Also make sure you don't do some very time consuming operations on Awake()
and Start()
.
Upvotes: 1