Question by
Isaac_Marovitz · Jan 04, 2020 at 03:00 PM ·
scene-loadingscene-switchingdontdestroyonload
How to load a scene for the second time with a DontDestroyOnLoad object.
I have a menu scene which has a GameManager component which is set to DontDestroyOnLoad, with a Singleton so that only one instance is ever present. When I try to go:
Menu Scene -> Scene 1 -> Menu Scene
the Menu Scene doesn't properly reset the second time around, and Start() and Awake() isn't called. I'm loading Scene 1 in Single not Additive mode so Menu Scene is not still loaded, yet when I try to load it for the second time, it's not reset. I assume this is a result of the GameManager. Is there any way to fix this without reseting the GameManager?
Comment
Best Answer
Answer by Isaac_Marovitz · Jan 04, 2020 at 04:22 PM
I forgot to set my Time.timeScale back to 1f.
Your answer
![](https://koobas.hobune.stream/wayback/20220612221029im_/https://answers.unity.com/themes/thub/images/avi.jpg)