XRView: index property
WebXR Device API
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()