API reference

AudioPlaybackState Enum

Playback state of an Audio component. Unlike animation, component audio is fire-and-forget: there is no resume-from-offset, so PAUSED stops the clip and PLAYING (re)starts it from the beginning.

Signature

enum AudioPlaybackState : Enum<AudioPlaybackState> 

Enumeration Constants

MemberDescription
PLAYING
The clip plays (starting from the beginning) when the component is added or changed.
PAUSED
The clip is silent; any playback already started for this entity is stopped.