Format
typescript
AudioClip.lengthclass: AudioClip
Description
The length of the audio clip in seconds.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The length of the audio clip. |
Code Example
typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.length;