List the project's scenes
Updated
A three-scene project whose script logs every scene from Scenes.list() and marks the active, ruling one from Scenes.active().
Read the scene list in the script log.
List the project's scenes
#pragma lifecycle(startup)
function startup() { const active = Scenes.active(); const ruling = active[active.length - 1]; Scenes.list().forEach((entry) => { let state = ''; if (entry.id === ruling) state = '(active, ruling)'; else if (active.includes(entry.id)) state = '(active)'; log(entry.name, entry.id, state); });}How it works
Section titled “How it works”The script is explained step by step in List the project’s scenes.
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.
SceneList.xrproj