Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. 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
Hello,

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.

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

Please sign-in or register to answer this question.

...