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.

How to set a global (no specific gameobject) RTPC value from unity script ? [closed]

0 votes

Hi,

the SDK documentation for setRTPCValue states that you can use AK_INVALID_GAME_OBJECT to post a global RTPC value. However, the Unity C# version of that method requires a GameObject parameter, and AK_INVALID_GAME_OBJECT is a uint. How do you go about not specifying a game object when setting an RTPC value in that context? I tried using null but I get an error...

Thanks :)

closed with the note: See answer below
asked Mar 4, 2016 in General Discussion by Matthieu B. (730 points)
closed Mar 5, 2016 by Matthieu B.

1 Answer

+1 vote
 
Best answer
My bad, "null" actually works. :/
There's even a version of SetRTPCValue that doesn't require a gameobject parameter. :)
answered Mar 5, 2016 by Matthieu B. (730 points)
selected Mar 5, 2016 by Fabien B. (Audiokinetic)
...