Skip to content

Keep a companion across scenes

Updated

An amber companion orb has a Don’t Unload component, so when you click a door and the project switches between the meadow and the cave scene, the orb, and the script on it, move with you while everything else is replaced.

Click the blue door to go to the cave, then the green door to come back: the orb stays with you and keeps counting the trips. Drag to orbit the camera, scroll to zoom.

Keep a companion across scenes

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.

CompanionDontUnload.xrproj