- Home /
Pause menu doesn't pause everything
When I use Time.timeScale, all scripts and sounds are still playing.. How to prevent this? Is there another code for pausing the whole game??
Comment
I guess it won't stop things that are not dependent on the time system. I guess you would need extra code... such as code to detect when Time.timeScale is 0 and then react. So, mute the sound, return from functions... etc. But I'm not too experienced with this, so I'm also kind of curious about what others have to say.
Your answer
![](https://koobas.hobune.stream/wayback/20220613141146im_/https://answers.unity.com/themes/thub/images/avi.jpg)