web api interface
XRAnchorSet
Limited availability
The XRAnchorSet interface exposes a collection of anchors. Its instances are returned by trackedAnchors and are Set-like objects.
Instance properties
See Set for details.
Instance methods
See Set for details.
Examples
Handling anchor tracking loss
const trackedAnchors = frame.trackedAnchors;
for (const anchor of previousFrameAnchors) {
if (!trackedAnchors.has(anchor)) {
// Handle anchor tracking loss
}
}
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.