Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

How to have a script run between 2 scenes

$
0
0
Hi, Iv'e made a script where it plays 4 different types of music one after each other and added that to an empty game object. I wan't that game object to survive through different scenes. Iv'e tried 'DontDestroyOnLoad' but when i go on the next level the music starts again so i have two pieces of audio playing at once instead of the audio just carrying on through the different scenes..... Anyone got an idea? Thanks, Nathan

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>