Skip to main content

Audio Continues playing if you set the app to background or lock device

This is likely happening due to the 'Loop' toggle on AudioSource being turned on.

Possible solution:

  • Hook into Unity Playworks Plugin Lifecycle events for OnPause and OnResume. Also be sure to turn off the 'Loop' option and stop the audio manually via code, and then have it resume when needed.

images-medium