How to make an mute/unmute button?

Hi everyone!
I want to make a button in unity that mutes/unmutes the music and sfx.
I have 3 buses for the settings in the game, one for sfx, one for music and the other for the master.
I thought about making a snapshot that lowers the master vca, but how can I apply it in unity?
Thanks a lot!

You’re on the right track. Assign all the necessary group buses into the necessary VCAs and then use FMODUnity.RuntimeManager.GetVCA to get the VCA and VCA::setVolume() to set the volume of the VCA (0 to mute, 1 to set back to default volume level).

https://www.fmod.com/resources/documentation-unity?version=2.02&page=api-runtimemanager.html#getvca

https://www.fmod.com/resources/documentation-api?version=2.02&page=studio-api-vca.html#studio_vca_setvolume

1 Like

Thanks a lot!!