Skip to content

Components

AudioZone

Slides the whole mix to a named snapshot while the listener is inside it, and back again on the way out, over a set fade. Needs an Area on the same node; the highest priority wins where two zones overlap.

On this page

Add it

+ Add node → Audio Zone creates a node with it already on. Already have a node for it? Add component → AudioZoneComponent.

From a script

A script on the same node writes these fields by name. AudioZoneComponent is the name to pass.

rgs
set_text("AudioZoneComponent", "snapshot", "");
set_number("AudioZoneComponent", "fade", 0.5);

Fields

FieldScript nameKindDefaultWhat it does
SnapshotsnapshottextemptyNamed mix to move to while the listener is in here.
Fadefadenumber, 0 to 10, step 0.050.5 sSeconds to fade the mix in, and out again.
Priorityprioritynumber0Highest wins where zones overlap.