Skip to content

Switch the world behind the portal

Updated

Three worlds are groups under a circular Mask Mesh with one enabled at a time; Next world closes the portal with a tween, swaps the world and opens it again.

Press Next world to step through the desert, the glacier and space. Drag to orbit the camera, scroll to zoom.

Switch the world behind the portal

The script is explained step by step in Switch the world behind the portal.

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.

PortalWorlds.xrproj