Naninovel MasterAudio BGM
WHY?
When using the stock @startBGM @stopBGM you will notice that when you use @goto the music stops :(
If you want your music to play throughout the story, including saving the music state and reloading it, look no further!
Using MasterAudio
Download: https://gofile.io/d/p2HXRb (MusicHookNani.rar) Unzip this and put it in your games scripts section (doesnt have to be in naninovel folders)
Usage:
@MasterPlay group:foo - Plays the masteraudio group foo, multiple calls will stop the previous music.
@MasterStop - Stops all music
Setup, without following these steps it will NOT work:
- Create a MasterAudio Prefab with MasterAudio
- Create your music groups and Make all music groups use a new BUS called NaniBGM <-- this name is case sensitive
PICTURE - Create this CustomVariable
PICTURE - Attach the script TitleScript.cs to your TitlePrefabUI
- Add onSHow callback to TitleScript.cs
See picture for steps 4 and 5
when you want to play a bgm across multiple scripts
@MasterPlay group:music-group-a
Now the music music-group-a is playing
@MasterPlay group:now-group-b
And at this moment music-group-a stopped and now-group-b is playing!