用这个脚本。这个脚本有什么问题?
audio.mute = ToggleButton.isSpeakerOff;
对不起英语不好,请快速回答
请更正我的脚本
最佳答案
只需用谷歌搜索,以下是来自: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
关于c# - 如何在Unity 3D中使音频静音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30859693/