Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

How to set volume on a game object ?

0 투표
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,

Jaxon
문의 2018 5월 1 General Discussion Jason C. (130 포인트) 로 부터

1 답변

0 투표
 
우수 답변
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;
volume.SetGlobalValue(volumeLevel);

If you want to see an example, check out the Wwise Adventure Game in the Launcher and open the Menu.cs script.
답변 2018 5월 2 Mads Maretty S. (Audiokinetic) (39,400 포인트) 로 부터
선택됨 2022 12월 15 Mads Maretty S. (Audiokinetic) 로 부터
Okay, I think I will try that.
Thanks for the answer
...