Hey all, I have a “restart level” function that I am using in a Unity game. Code looks like this…
public void Restart()
Time.timeScale = 1;
SoundManager.songInstance = FMODUnity.RuntimeManager.CreateInstance(“event:/Music/” + SoundManager.currentSongName + “bgm”);
The issue I am having is that the background music that I started at the beginning of the level does not restart when I use this function to reload the scene, even though I have stopped the previous instance, created a new one, and started it, as seen in my code. I have done some debugging so far and am finding that when I restart, the playback state of the background music event is “STARTING” but immediately moves to “STOPPED”. A query of the timeline position tells me that it doesn’t move from 0. I have been debugging this for a while with no luck. I am pretty new to FMOD and programming in general so any help would be greatly appreciated!