When changing level, I have some snapshots that are persistent com one level to the other.
I don´t have the stop event “OnDestroy”, so how do I delete all of them ?
I´m currently doing this :
var playerBus : FMOD.Studio.Bus;
playerBus = FMODUnity.RuntimeManager.GetBus(“bus:/Global”);
playerBus.stopAllEvents(FMOD.Studio.STOP_MODE.IMMEDIATE);
And while it works for the most part, there´s some places here and there that I can hear a snapshot from a previous level.
What´s the correct way to do this ?
Thanks !