Skip to content

Format

typescript
AudioClip.length

class: AudioClip

Description

The length of the audio clip in seconds.

Parameters

param_nametypedescription

Return

typedescription
numberThe length of the audio clip.

Code Example

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