Properties
📌 Summary table
Using
bool
true when the sound is in use—even if paused.
Playing
bool
true while the sound is actively playing.
Paused
bool
true when the sound is paused (fade-out ignored).
Volume
float
Current volume level (0 – 1).
ClipIndex
int
Index of the clip being played; returns -1 if none is specified.
PlayingTime
float
Total time (in seconds) the sound has been playing.
CurrentLoopCycleTime
float
Elapsed time (in seconds) of the current loop cycle.
CompletedLoopCycles
int
Number of loop cycles completed.
ClipDuration
float
Total duration of the clip now playing.
Clip
AudioClip
Reference to the clip currently being played.
📘 Detailed description
bool Using
bool UsingReturns true when the sound is occupying an AudioSource. This includes both active playback and paused states.
bool Playing
bool PlayingReturns true only while the sound is actively playing. If the sound is paused or stopped, this property is false.
bool Paused
bool PausedReturns true if the sound is currently paused. Unlike Playing, it disregards any fade-out effect and focuses on the actual paused state.
float Volume
float VolumeRepresents the current volume of the sound, normalised between 0 (silent) and 1 (maximum).
int ClipIndex
int ClipIndexIndicates the index of the clip being played within the sound’s clip array. If no specific clip is selected, returns -1.
float PlayingTime
float PlayingTimeTotal time in seconds that the sound has been playing since it last started.
float CurrentLoopCycleTime
float CurrentLoopCycleTimeElapsed time of the current loop cycle in seconds. If looping is disabled, this value matches the total playing time.
int CompletedLoopCycles
int CompletedLoopCyclesNumber of times the sound has fully completed a loop cycle. Increments only when looping is enabled.
float ClipDuration
float ClipDurationTotal duration in seconds of the clip currently playing. Returns 0 if no clip is assigned.
AudioClip Clip
AudioClip ClipDirect reference to the AudioClip being played. Useful for accessing its properties or comparing it with other clips.
Last updated