Aego Русский

Audio events

An audio event is a data asset of type Audio Event (Create → Data Asset → Audio Event). It names one or more clips and how to play them:

Field Meaning
Variants clips; one is picked at random on every play
Volume, Volume Random volume, and how much quieter each play may be
Pitch, Pitch Random pitch, and how far up or down each play may go, so repeated sounds do not ring the same
Bus, Priority the bus, and which voices the mixer steals first when it runs out
Max Voices, Steal at the limit a new play stops the oldest voice of the event, the quietest, or is skipped
Cooldown seconds of game time before the event plays again
Spatial … Pan Width see Spatial sound
Loop, Pause With loops until stopped; game pauses with the world, never keeps playing

Scripts play an event with audio.PlayEvent(Jump) from an @export var Jump AssetRef<AudioEvent>; an Audio Source 2D plays one when its Event is set, and the event's settings replace the source's playback fields. Voice limits and cooldowns count per world. The random picks come from the audio service's own seed, so a replay picks the same variants, and sound never touches the game's random numbers.

Like every data asset, an event can have a base and override a few fields. An event without variants, or a spatial one with Max Distance not larger than Min Distance, is an error (AUD006).