用脚本这个。脚本有什么问题吗?
audio.mute = ToggleButton.isSpeakerOff;
对不起坏英语,请快点回答 请更正我的剧本答案 0 :(得分:0)
只需谷歌,以下内容来自:http://answers.unity3d.com/questions/52109/how-do-i-mute-all-audio-sound.html
AudioListener.pause = true;
AudioListener.volume = 0;
试试这个 http://unity3d.com/support/documentation/ScriptReference/AudioListener-pause.html