Please note that we will be performing routine server maintenance on November 23rd. Your experience may be temporarily limited on the Audiokinetic website and Wwise Launcher for a period of 48 hours.

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. Contact Sales if your project requires a support plan.

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

1 Answer

0 votes
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 by Mads Maretty S. (290 points)
Okay, I think I will try that.
Thanks for the answer