AbstractStaticactiveDetermines the device on which is the audio played back on.
StaticallReturns a list of all available audio devices.
StaticdefaultReturns the default audio device identifier.
StaticvolumeDetermines global audio volume. In range [0, 1].
StaticisDetermines if audio reproduction is paused for the sceneInstance.
StaticplayStarts playback of the provided audio clip as a 'one-shot' source. This can be used for a quicker way of creating audio sources if you don't need the full control provided by creating AudioSource manually.
Audio clip to play.
Optionalposition: Immutable<Vector3>Position in world space to play the clip at. Only relevant if the clip is 3D.
Optionalvolume: numberVolume to play the clip at.
Optionalpitch: numberThe pitch of the clip. Default is 1.
OptionalminimumDistance: numberThe distance in units that no attenuation occurs. Default is 10.
Optionalattenuation: numberIncreases or lower distance attenuation. 0, disables distance attenuation. Default is 1.
The AudioSource if successfull or null.
StaticsetPauses the audio for the specified sceneInstance. Set sceneInstance to null to pause all scenes.
Provides global functionality relating to sounds and music.