- Home /
How to debug audio problems?
I have a MainMenu scene and various scenario scenes get loaded additively. The audioListener is attached to the mainCamara that is on the MainMenu scene and the sounds are also there - I can even see the gameObjects that hold them activate as required. Audio works fine when I load a scenario from the MainMenu scene. However, it stops working when scenarios are linked together in a campaign - it works with the first scenario, but when that one is finished and the next is loaded, the audio stops working. It also does not work when I load a saved game. In all cases, the finished scenario is removed with:
SceneManager.UnloadSceneAsync(scenarioNumber);
and the next scenario is loaded with:
scenesToLoad.Add(SceneManager.LoadSceneAsync(scenarioNumber, LoadSceneMode.Additive));
How can I even debug this?