Skip to content

Open a portal when a key is collected

Updated

A Travel Point into the vault stays closed until you press Pick up the key; then it opens with a gold ring, and walking into it lands you on the vault’s out portal, which reports your arrival.

Press Pick up the key, then walk forward with W into the gold ring to travel to the vault. Drag to look around.

Open a portal when a key is collected

The script is explained step by step in Open a portal when a key is collected.

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.

VaultPortal.xrproj