Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The XRAnchorSet interface exposes a collection of anchors. It is returned by XRFrame.trackedAnchors and is a Set-like object.

Instance properties

See Set for details.

Instance methods

See Set for details.


Handling anchor tracking loss

const trackedAnchors = frame.trackedAnchors;

for (const anchor of previousFrameAnchors) {
  if (!trackedAnchors.has(anchor)) {
    // Handle anchor tracking loss


WebXR Anchors Module
# xranchorset

Browser compatibility

BCD tables only load in the browser

See also