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.

Playing different sounds based on game parameter value (Unity).

0 votes

I am wanting to play different one-shot sounds based on an game parameter value. So for example if the value is between 0 and 25, play sound A. Between 26 and 50 play sound B. 51 and 75 play sound C, etc.

I know that you can set up a switch group to use a game parameter, which seems like what I want to do, but I can't seem to get it to work in Unity. It always plays the same sound regardless of what I set the game parameter.

It works in the Soundcaster so I guess I am missing something in my Unity code? I know I am setting the game parameter correctly because I have several RTPCs set up that use it.

asked Dec 4, 2020 in General Discussion by Kevin S. (100 points)

Please sign-in or register to answer this question.