WebXR Device API
The index read-only property of the XRView interface indicates the index of the current XRView in the XRViewerPose.views array.
Value
A number.
Examples
Basic usage
console.log(xrView.index);
Specifications
Browser compatibility
See also
- XRViewerPose.views
- XRFrame.getViewerPose()
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
