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.

How to set volume on a game object ?

0 votes
Hello !


I'm a student in video game design and I'm trying to add sound to a Unity project using Wwise. It's my first time using the software and I didn't have any lecture on it.

I only have a small issue in managing the volume of the SFX/musics, as I don't find any function (in C# script) allowing me to change the volume of an event. I've found a function called SetOutputVolume in AkSoundEngine but I don't know how to use it. What is the in_idOutput, and how can I know what to put in there ?


Thanks a lot,

asked May 1, 2018 in General Discussion by Jason C. (130 points)

1 Answer

0 votes
Best answer
Hey Jaxon. I would make an RTPC in Wwise, assign the Voice volume of your container to that RTPC and then set it using a Wwise-Type RTPC.

Something like...
public AK.Wwise.RTPC volume;

If you want to see an example, check out the Wwise Adventure Game in the Launcher and open the Menu.cs script.
answered May 2, 2018 by Mads Maretty S. (Audiokinetic) (37,200 points)
selected Dec 15, 2022 by Mads Maretty S. (Audiokinetic)
Okay, I think I will try that.
Thanks for the answer