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
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.
in General Discussion by Guido F. (100 points)

1 Answer

0 votes

Hi!

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!

by Nikola Viel (1.6k points)
...