• Skip to main content
  • Skip to search
  • Skip to select language
MDN Logo
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. XRFrame
  4. XRFrame.trackedAnchors

Table of contents

  • Value
  • Examples
  • Specifications
  • Browser compatibility

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

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

Related Topics

  1. WebXR Device API
  2. XRFrame
  3. Properties
    1. session
    2. trackedAnchors
  4. Methods
    1. createAnchor()
    2. fillJointRadii()
    3. fillPoses()
    4. getDepthInformation()
    5. getHitTestResults()
    6. getHitTestResultsForTransientInput()
    7. getJointPose()
    8. getLightEstimate()
    9. getPose()
    10. getViewerPose()
  5. Related pages for WebXR Device API
    1. Navigator.xr
    2. WebGLRenderingContext.makeXRCompatible()
    3. XRAnchor
    4. XRBoundedReferenceSpace
    5. XRCPUDepthInformation
    6. XRDepthInformation
    7. XRInputSource
    8. XRInputSourceArray
    9. XRInputSourceEvent
    10. XRInputSourcesChangeEvent
    11. XRPose
    12. XRReferenceSpace
    13. XRReferenceSpaceEvent
    14. XRRenderState
    15. XRRigidTransform
    16. XRSession
    17. XRSessionEvent
    18. XRSpace
    19. XRSystem
    20. XRView
    21. XRViewerPose
    22. XRViewport
    23. XRWebGLBinding
    24. XRWebGLDepthInformation
    25. XRWebGLLayer
MDN Logo
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2025 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies