#Game music keeps playing in the background
1 messages · Page 1 of 1 (latest)
I've managed to fix this issue by changing AudioController.cs and adding AudioListener.pause = true in a new OnApplicationPause() method, but this seems very odd that I need to do that. The default behavior in Unity seem to be to pause the music when focus is lost, but not when using Naninovel.
Alright, the culprit was:
Note that that option not only affects music but the whole game. If you want your game to keep running but pause the music only, you may need to resort to tricks like the one you mentioned