Skip to content

format

typescript
AudioSource.mute

class: AudioSource

description

Whether the audio is currently muted.

When muted, the volume is set to 0. Unmuting will restore the original volume.

parameter

param_nametypedescription

reture

typedescription
booleanWhether the audio is muted

code example

typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.mute;