Static
PlayPlays an audio resource. It will play positionally if a position is supplied in the config. Otherwise the audio will play globally.
Audio resource to play. This can be either an AudioClip or an AudioRandomConatiner.
Optional
config: PositionalPlaySoundConfigConfigure how the sound is played.
Static
PlayLoads an Audio Clip from path and plays it globally.
Path to audio clip. Must be under Resources
folder or else it won't exist in published game.
Optional
config: PlaySoundConfigAudio Source configuration
Spawned Audio Source playing the clip (or undefined if the clip can't be loaded).
A set of utilities that allow you to quickly play an Audio Clip with configuration.
Audio sources are pooled for improved performance.