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. Its instances are returned by XRFrame.trackedAnchors and are Set-like objects.
See Set for details.
See Set for details.
const trackedAnchors = frame.trackedAnchors;
for (const anchor of previousFrameAnchors) {
if (!trackedAnchors.has(anchor)) {
// Handle anchor tracking loss
}
}