+2 votes

Is there a way to mute all sound like setting a master volume to 0?

Thanks in advance.

in Engine by (24 points)

1 Answer

+6 votes

I did try these on an demo Project and they worked for me:
for music:

AudioServer.set_stream_global_volume_scale(0)

for sound effects:

AudioServer.set_fx_global_volume_scale(0)

the scale ranges from 0 to 1.0.

by (289 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories