Skip to content

XR Planes

Updated

Shows detected real floors, walls and tables.

Type
comp-xr-planes
Script class
XRPlanesComponent
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.

  • XRPlanes::detected
  • XRPlanes::updated
  • XRPlanes::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(XRPlanesComponent);
if (component) log(component.props);
}