Stop All Game Sound by uncheck toggle button in unity
I have several scenes and I want to mute all the game sounds in the ALL SCENES when I uncheck toggle button in main menu. Please help me get the script. I really appriciate all of your solution.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 11, 2017, 9:30 AM EDT
public GameObject audioSource; bool soundToggle = true; OnGUI() { soundToggle = !soundToggle; if(soundToggle) { audioSource.SetActive(true); //audioSource.mute = true; //audioSource.volume = 1.0f; } else { audioSource.SetActive(false); //audioSource.mute = false; //audioSource.volume = 0.0f; } }