Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play animations while the game is paused (timescale = 0)

I am trying to pause a game in Unity using by setting timeScale to 0 when the pause panel comes up, and setting it back to 1 when the panel is disabled. The problem I am having is that when I Pause, the buttons on the panel are not showing their animation as the time scale is 0. Is there anyway around this? Or should I find another way to do the pause without using the timescale?

like image 292
Kielaen Pillay Avatar asked Sep 06 '25 03:09

Kielaen Pillay


1 Answers

In your Animator component look for Update Mode option and select Unscaled Time. Like this :

Use Unscaled Time as Update Mode

like image 139
Umair M Avatar answered Sep 07 '25 21:09

Umair M