MDN self-hosted library · e01.org

XRView: index property

WebXR Device API

Open notebook · 1 cells web-api-instance-property upstream source

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()