Welcome at the spawn point
Updated
A spawn point places the main camera when play starts; its Signal Emitter sends SpawnPoint::place and a script logs where the player arrived.
Read the arrival in the script log. Drag to look around, scroll to zoom.
Welcome at the spawn point
#pragma lifecycle(startup)
function startup() { on('spawn', (event) => { if (event.eventType !== EventType.SpawnPoint.Place) return; const point = findEntity(event.entityId); log(`Spawned at ${point ? point.name : 'a spawn point'}`, event.data.position); emit('hud/toast', { text: `Welcome to ${point ? point.name : 'the world'}` }); });}How it works
Section titled “How it works”The script is explained step by step in Welcome at the spawn point.
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.
SpawnWelcome.xrproj