Format
typescript
AudioClip.samplesclass: AudioClip
Description
(Read Only) The number of samples in the audio clip.
The sample count represents the number of audio samples contained in the audio clip.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The number of samples in the audio clip. |
Code Example
typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.samples;