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

Keep a Coroutine running during scene load

$
0
0
I have an audio crossfade running as a coroutine on my audiomanager object. The audiomanager is set not to destroy on load, which seems to be working fine. The track continues to play uninterrupted during the scene change. But the coroutine will stop as soon as the scene changes. I've tested with other persistent objects and I get the same behavior. Is a coroutine terminating during a scene change even though it's on a persistent object expected behavior? If so, what are some other ways that I can get a crossfade between scenes?

Viewing all articles
Browse latest Browse all 416

Trending Articles



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