5 lines
155 B
GDScript3
Raw Normal View History

2024-02-27 22:21:44 +00:00
class_name Audio
static func mute(enabled: bool):
var master_sound = AudioServer.get_bus_index("Master")
AudioServer.set_bus_mute(master_sound, enabled)