Component · audio
ReverbZone
A room or space with its own reverb. The listener's zone drives the room reverb; sources in other zones reach the listener through portals.
Fields
name
stringUnique zone name; portals, traces and diagnostics refer to zones by name.
default ""
shape
ZoneShapeVolume shape.
default "box"
One ofboxsphere
position
vec3World-space center, supplied from the entity transform by the bridge.
default [0,0,0]m
rotation
vec4World rotation as a unit quaternion (x, y, z, w), supplied by the bridge.
default [0,0,0,1]
halfExtents
vec3Box half extents.
default [5,3,5]m
radius
f32Sphere radius.
default 5m0.1 – 10000
fade
f32Width inside the boundary over which the listener crossfades to the outer space.
default 1m0 – 100
priority
i32Nested zones: the highest priority containing zone wins.
default 0
material
MaterialPresetWall material, deriving absorption for the realtime room model.
default "generic"
One ofgenericbrickconcreteceramicgravelcarpetglassplasterwoodmetalrock
rt60
option<vec3>Explicit low/mid/high reverberation times in seconds, overriding derived and baked values.
default null
wet
f32Reverb return gain.
default 10 – 4
earlyReflections
boolGeometric early reflections from the zone's walls.
default true
useBaked
boolPrefer baked probe reverb times inside this zone when cooked cells are loaded.
default true
Usage
Every edit is an undoable command: from the CLI as below, or the same JSON from an agent over MCP. See component.add and property.set.
Add it
ara do component.add -p entity=name:Crate -p component=ReverbZone --why "Add ReverbZone"Set a field
ara do property.set -p entity=name:Crate -p path=ReverbZone.name -p value="" --why "Tune ReverbZone"In a scene document
{
"ReverbZone": {
"name": ""
}
}From C#
/// <summary>Increase the reverb blend inside a large room.</summary>
public static void UseReverbZone(Entity entity, in Tick tick)
{
ref var component = ref World.Get<ReverbZone>(entity);
component.Wet = 0.6f;
}From C#
Scripts read and write it with Get<ReverbZone>(); see the ReverbZone struct.