format
typescript
AudioSource.muteclass: AudioSource
description
Whether the audio is currently muted.
When muted, the volume is set to 0. Unmuting will restore the original volume.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
boolean | Whether the audio is muted |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.mute;