XRAnchorSet
Limited availability
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.
Giao diện XRAnchorSet hiển thị một tập hợp các anchor. Các phiên bản của nó được trả về bởi XRFrame.trackedAnchors và là các đối tượng giống Set.
Thuộc tính phiên bản
Xem Set để biết chi tiết.
Phương thức phiên bản
Xem Set để biết chi tiết.
Ví dụ
>Xử lý mất theo dõi anchor
js
const trackedAnchors = frame.trackedAnchors;
for (const anchor of previousFrameAnchors) {
if (!trackedAnchors.has(anchor)) {
// Handle anchor tracking loss
}
}
Thông số kỹ thuật
| Specification |
|---|
| WebXR Anchors Module> # xranchorset> |