Optional
options: Partial<AudioPlayerOptions>The action to perform with the audio source. This action will be erased at the end of the frame
The audio source to play.
TRUE If the playback rate is fixed to the TimeManager time scale, default FALSE
TRUE If the audio source should loop.
READONLY, The current state of the audio source.
TRUE If the audio source should stop on scene transition, FALSE otherwise. Default is TRUE.
The volume of the audio source.
The AudioPlayer component handles audio playback in the game. It manages playing, pausing and stopping audio sources, controls volume and looping behavior, and can optionally sync playback speed with the game's time scale.
Example