Quantcast
Channel: Answers by "Lucanio"
Viewing all articles
Browse latest Browse all 18

Answer by Lucanio

$
0
0
Do you mean you want the music to pause on certain scenes, but then pick back up at the same place in other scenes. Yes, yo can do that. To get the loaded level use `Application.loadedLevel` or `Application.loadedLevelName`. You can `audio.Pause()` the music and because its gameobject has been set to `DontDestroyOnLoad()`, it should resume when you call `audio.Play()` in the specific scenes. Additionally, you can get the specific position by calling `audio.timeSamples`.

Viewing all articles
Browse latest Browse all 18

Trending Articles



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