Skip to content

Format

typescript
AudioClip.channels

class: AudioClip

Description

(Read Only) The number of channels in the audio clip.

The number of channels represents the number of independent channels simultaneously present in the audio clip.

Parameters

param_nametypedescription

Return

typedescription
numberThe number of channels in the audio clip.

Code Example

typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.channels;