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.

Wwise not changing music with Unity PostEvent

0 votes
I created a Music Switch Container and added the switches. In Wwise it works perfectly, but when I test it in Unity, the switches are triggered but the music remains the same.

I checked in the profiler and Wwise recieves the events, still nothing happends. If I disconnect and test the music only in Wwise, it works again.

Do you know what could it be? Thanks in advance.
asked May 25, 2022 in General Discussion by Guido F. (100 points)

1 Answer

0 votes


Try using a State Group instead of a Switch. States are global therefore your post event can be on ANY objects and work properly.

Switches are tracked per GameObject (Unless you specify otherwise in the code) so you need to make sure the event is played on the GameObject that the music is playing on.

You don't get the issue in Wwise because your soundcaster is considered as a single object.

Hope it helps!

answered May 29, 2022 by Nikola Viel [SIDE Global] (1,620 points)