Skip to content

XR Meshes

Updated

Shows the scanned shape of the real room.

Type
comp-xr-meshes
Script class
XRMeshesComponent
Per entity
One
Version
1.0.0

Read about it in XR world: what it does, how to use it from a script, and examples.

Sent to the entity’s Signal Emitter as { entityId, eventType, data }. Compare eventType with the EventType constants.

  • XRMeshes::detected
  • XRMeshes::updated
  • XRMeshes::lost

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(XRMeshesComponent);
if (component) log(component.props);
}