Music will play while paused, both in the players and the IDE itself. The music is just an AudioClip Play() call. How do I have the music pause, too?
In particular this is throwing off the yield WaitForSeconds(clip.length) delayer between songs…
Music will play while paused, both in the players and the IDE itself. The music is just an AudioClip Play() call. How do I have the music pause, too?
In particular this is throwing off the yield WaitForSeconds(clip.length) delayer between songs…
There is AudioListener.pause . Kind of hidden, eh?
Cheers,
-Jon
Ah ha! So just hook that up to OnApplicationPause? Seems bizarre to have to manually pause things like an audio clip, but so be it!
Ive often wondered if you can play a clip from part way through…Similar to splitting animations in the import settings…
So you could StartPlayingClipAt(20);
type thing…?
AC