Hi,
I'm trying to create prefabs of some sound events I'm using in my game. This works fine until I try to add some callbacks to the game object. When I do, the callback information does not appear on the prefab and causes a NullReferenceException.
I could understand the callbacks not working if I referenced a game object in my scene (as the prefab lives outside the scene) but in my case the game object reference used for the callback is the AkAmbient prefab itself. Am I missing something?
I am using Wwise 2017.1.1 Build 6340 and Unity 5.6.3p1.
Repro steps:
- Create an empty game object in the Hierarchy.
- Add the AkAmbient component.
- Check the Use callback toggle and create a callback to the object itself (you can leave the callback function empty).
- Drag the object from the Hierarchy to the project view to create a prefab from it.
- Notice that all the callback information have disappeared and that trying to add them back to the prefab you get a NullReferenceException when getting the callback data.