XRFrame: thuộc tính trackedAnchors

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Thuộc tính chỉ đọc trackedAnchor của giao diện XRFrame trả về một đối tượng XRAnchorSet chứa tất cả các neo vẫn còn được theo dõi trong khung.

Giá trị

Một đối tượng XRAnchorSet.

Ví dụ

Cập nhật neo

js
for (const anchor of frame.trackedAnchors) {
  const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}

Thông số kỹ thuật

Thông số kỹ thuật
WebXR Anchors Module
# dom-xrframe-trackedanchors

Tương thích trình duyệt