Load Audio Action

Description

Loads an audio file as an AudioClip.

MP3 files are only supported on mobile, and Ogg Vorbis files are only supported on standalone platforms.

WAV, XM, IT, MOD and S3M files are supported on all platforms except WebGL.

As this method requires file access, this method is not supported on WebGL.

The Error Event will be triggered if the data does not exist. In this case, you can use the File Exists action to check if the data exists before loading.

Parameters

Audio File Path The relative or absolute path of the audio file we want to load.

Audio Clip

The variable we want to use to store our loaded AudioClip.

Error Handling

[Optional] Events triggered when an error occurs.

Override Default Settings

[Optional] The settings we want to use to override the default settings.

Examples

LoadAudioAction