Tuesday, May 31, 2022
HomeGame Developmentunity - Easy methods to load DontDestroyOnLoad object from menu scene when...

unity – Easy methods to load DontDestroyOnLoad object from menu scene when testing different scenes?


I’ve an audio supervisor that performs background music for a recreation I am making in Unity. For the reason that music persists between some scenes, I’ve arrange a method of not destroying the audio supervisor between all scenes and simply altering the observe at any time when the scene modifications to 1 that has a unique observe. I’ve completed this by implementing my audio supervisor on the principle menu display, however not one of the subsequent ranges, since I do not need a number of managers. Nevertheless, after I launch a scene from Unity, I’ve a troublesome time debugging with no audio supervisor. Is there a technique to instantiate an audio supervisor if there may be none in a scene? Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments