Hello,
I just created this toggle button that mutes and unmutes background music and it’s working perfectly
I couldn’t do the same thing to mute all the sound effects at once using a toggle button, or even a regular button, Do you guys have any Idea how to solve this issue?
Any help or suggestions will be much appreciated
Thank you for reading and for your time
Cheers
You’ll probably want to modify the audiosource volume on them.
What I prefer to do is have a separate audio controller script for each type of audio - music, sfx, etc. In the script I’ll have it go through and update the audiosource volume of each of the currently playing sounds and set the volume that any newly created sounds should be playing at. Then have sliders or mute buttons that set the volume variables.
If you make lists of all currently playing sounds of a certain type it’s easy to modify them all at once.
1 Like
Thank you very much !
I thought about that and i was afraid that was the wrong way of doing it ,to list all the playing sounds then modify them all at once, but now you just confirmed that’s the right way 
thank you again !