XRFrame.trackedAnchors
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

Specification
WebXR Anchors Module # dom-xrframe-trackedanchors

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet



trackedAnchors
85
85
No
No
No
No
No
85
No
No
No
14.0




Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Sep 2, 2021, by MDN contributors


    
{'path': 'public/docs/dom/xrframe/trackedanchors.html', 'source': 'DevDocs.IO'}