Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

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:

  1. Create an empty game object in the Hierarchy.
  2. Add the AkAmbient component.
  3. Check the Use callback toggle and create a callback to the object itself (you can leave the callback function empty).
  4. Drag the object from the Hierarchy to the project view to create a prefab from it.
  5. 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.
in General Discussion by Clement L. (160 points)

Please sign-in or register to answer this question.

...