- Home /
time.unscaled time help please?
Hello. I have set up a pause menu in my game using time.TimeScale and setting it to 0 when the player pauses the game, and i utilize GUI to set up the menu to unpause the game. This works fine, but I would prefer to set up my pause menu with gameobjects, as it gives me a better range for adjusting graphics to what I would like to see, and also adding button animations. I searched a bit and found that i can use time.unscaledtime to allow gameobjects to continue to animate and operate even when the time.timescale is set to 0. Can someone guide me as to how to use time.unscaledtime so that my gameobjects would be unaffected when I pause the game?
I submitted this as an answer, but it hasn't been approved yet so I will comment.
It should work if you set the "Update $$anonymous$$ode" on the "Animator" component of each GameObject (with it's own Animator component) in the pause menu to "Unscaled Time", this is what I did for my pause menu.
Answer by HellFireKoder · Sep 29, 2014 at 05:05 AM
Try setting the "Update Mode" on the "Animator" component to "Unscaled Time", this makes the animations use UnscaledTime, so it should work properly.
Your answer
Follow this Question
Related Questions
Pause, Unpause 1 Answer
How to Pause game 1 Answer
Can't really pause my game 1 Answer
Problem changing TimeScale 1 Answer