XRView: index property
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The read-only index property of the XRView interface indicates the index of the current XRView in the XRViewerPose.views array.
Value
A number.
Examples
js
console.log(xrView.index);
Specifications
| Specification |
|---|
| WebXR Device API> # dom-xrview-index> |