Skip to main content

XR Events

XR events are forwarded from the 8th Wall engine. They are emitted on the camera entity and bubble up to the world.events.globalId.

See the lifecycle events for World Effects, Face Effects, Image Targets, and VPS.

Events

REALITY_READY

This event is emitted when 8th Wall Web has initialized and at least one frame has been successfully processed. This is the recommended time at which any permissions/loading UI should be hidden.

Properties

None.

Example

defineState('initial-state').initial().listen(world.events.globalId, ecs.events.REALITY_READY, () => {
console.log('Reality ready')
})