- Home /
deltatime glitches
The game scene starts with timescale = 0; after that Time.deltatim works properly. Then timescale becomes 1 - everything is fine. Then one more timescale = 0. And here comes the problem. deltatime becomes equal 0. What is the matter?
Answer by Wolfram · Feb 03, 2013 at 06:15 PM
That is intentional, as Time.deltaTime in Update() reflects the time since the last frame, but scaled by Time.timescale. See here for a more detailed review of the situation: http://answers.unity3d.com/questions/270116/timetimescale-seems-doesnt-work-with-update.html
Actually, the fact that Time.deltaTime is not 0 if you already start with Time.timescale==0 is the bug.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Delaying through yield 2 Answers
When to use Time.deltaTime? 3 Answers
Accumulating deltaTime oddity 1 Answer