A timed slideshow of viewpoints
Updated
At startup the script cuts to three viewpoint cameras in turn, four seconds each, scheduling each cut with delay, then hands the view back to the main camera.
Watch the tour cut between three viewpoints, then return to the orbit camera. Drag to orbit the camera, scroll to zoom.
A timed slideshow of viewpoints
#pragma lifecycle(startup)
const STOPS = ['View North', 'View Harbour', 'View Tower'];const SECONDS = 4;
function show(index) { if (index >= STOPS.length) { CameraDirector.switchToMain(); return; } CameraDirector.switchTo(STOPS[index]); delay(show, SECONDS * 1000, index + 1);}
function startup() { show(0);}How it works
Section titled “How it works”The script is explained step by step in A timed slideshow of viewpoints.
Open it in XR Creator
Section titled “Open it in XR Creator”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.
ViewpointTour.xrproj