Un-pause audio

I want to un-pause my background music to continue playing where it left off.
If I use audio.Play(), it simply restarts the music. Can anyone tell me how to un-pause?

1 Like

Are you pausing the audio or stopping it completely?

This may help: Unity - Scripting API: AudioSource.Pause

Another thing you could try is to set the volume to 0 when the game is paused and restore the volume back to it’s original level when you resume, I know it’s not exactly the same but it should work.

I am pausing it like this:

_audioMusic.audio.Pause();

then playing like this:

_audioMusic.audio.Play();

I think your volume setting option might work. I could even fade it in and out that way.
I was hoping there was an UnPause() method and I am not sure why there isn’t.

Try this.

1 Like

very cool guys, thanks.