Animations with Time.timeScale = 0
Hello,
I am implementing a pause menu. My current approach is to set the timeScale to 0 to pause the game and show the menu.
This works without problems. The only thing is that the control animations are also affected by the timeScale.
Is there a way to update the animations manually?
A look into the documentations brought me to the Clock class but I could not figure out to do it.
I am implementing a pause menu. My current approach is to set the timeScale to 0 to pause the game and show the menu.
This works without problems. The only thing is that the control animations are also affected by the timeScale.
Is there a way to update the animations manually?
A look into the documentations brought me to the Clock class but I could not figure out to do it.
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: Animations with Time.timeScale = 0
Hi, by default Noesis plugin uses Time.time (affected by timeScale) to update, but you can set UseRealTimeClock=true to use real time since startup.
Could that work for you?
Could that work for you?
Re: Animations with Time.timeScale = 0
Thanks for the answer.
Worked just liked that.
Worked just liked that.
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: Animations with Time.timeScale = 0
Great, thanks for the update.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 51 guests