XRAnchor:anchorSpace 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
XRAnchor
接口的 anchorSpace
只读属性返回将锚点相对于其他 XRSpace
对象进行定位的 XRSpace
对象。它可以随后传递给 XRFrame.getPose()
。
值
XRSpace
对象。
示例
更新锚点
js
for (const anchor of frame.trackedAnchors) {
const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}
规范
Specification |
---|
WebXR Anchors Module # dom-xranchor-anchorspace |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
anchorSpace |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.