Skip to content

format

typescript
AudioSource.isPlaying

class: AudioSource

description

(Read Only) Whether the audio clip is currently playing.

parameter

param_nametypedescription

reture

typedescription
booleanWhether the audio clip is currently playing.

code example

typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.isPlaying;