VRDisplayCapabilities object

The VRDisplayCapabilities object describes the capabilities of a VRDisplay.

Syntax

 var capabilities = new VRDisplayCapabilities(); 

Members

The VRDisplayCapabilities object has these types of members:

  • Properties

Properties

The VRDisplayCapabilities object has these properties.

Property Access type Description

canPresent

Read-only

The canPresent property returns whether the VRDisplay is capable of presenting content to an HMD (head mounted display) or similar device.

hasExternalDisplay

Read-only

The hasExternalDisplay property returns whether the VRDisplay is separate from the device’s primary display.

hasOrientation

Read-only

The hasOrientation property returns whether the VRDisplay is capable of tracking its orientation.

hasPosition

Read-only

The hasPosition property returns whether the VRDisplay is capable of tracking its position.

maxLayers

Read-only

The maxLayers property returns the maximum length of an array that VRDisplay.requestPresent will accept.

 

Remarks

These capabilities are expected to be static per-device/per-user.