MDN self-hosted library · e01.org

XRFrame: trackedAnchors property

WebXR Device API

Open notebook · 1 cells web-api-instance-property upstream source

WebXR Device API

The read-only trackedAnchor property of the XRFrame interface returns an XRAnchorSet object containing all anchors still tracked in the frame.

Value

An XRAnchorSet object.

Examples

Updating anchors

for (const anchor of frame.trackedAnchors) {
  const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}

Specifications

Browser compatibility