Skip to content

Entering a cave

Updated

A sound inside an Audio Zone gains a long Reverb as the listener walks in: the zone’s enter and exit events tween the filter’s wet mix up and down.

With your sound on, hold W for about a second to walk the camera into the cave: the drum beat inside sounds, and the cave's reverb swells in. Hold S to walk out. Sounds inside a zone are silent from outside it. The beat is a short loop generated for this example.

Entering a cave

The script is explained step by step in Entering a cave.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

CaveReverb.xrproj