Skip to main content
J
19h ago

Mute button

I have built an interactive map that has sound effects that are triggered when a user clicks on a room.

How could I add a mute button, so that all sound effects can be muted by the user?

1 reply
J
J
9h ago

I would create a toggle button tied to a boolean input. Then in your conditions for the transition to the sound, also check to make sure the mute bool is off. If you have a whole lot of sounds, it may be easier to have a separate state for muted that you leave when unmuted so you don't have to add the condition to every single transition.