How do I Mute The Audio In Unity 3D?

5.7k views Asked by At

with script this. what is wrong in script this ?

audio.mute = ToggleButton.isSpeakerOff;

sorry bad english,fast answer please correct my script please

1

There are 1 answers

1
Nissim On BEST ANSWER

Simply google it, the following is from: http://answers.unity3d.com/questions/52109/how-do-i-mute-all-audio-sound.html

AudioListener.pause = true;

AudioListener.volume = 0;

try this http://unity3d.com/support/documentation/ScriptReference/AudioListener-pause.html