Format
typescript
AudioClip.channelsclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The number of channels in the audio clip. |
Code Example
typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.channels;