format
typescript
AudioSource.timeclass: AudioSource
description
The current playback time (in seconds) of the audio being played by the AudioSource component.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The current playback time position (in seconds) of the audio. |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.time;