Skip to content

format

typescript
AudioSource.time

class: AudioSource

description

The current playback time (in seconds) of the audio being played by the AudioSource component.

parameter

param_nametypedescription

reture

typedescription
numberThe current playback time position (in seconds) of the audio.

code example

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