API reference

OVRDisplay Class

Manages an Oculus Rift head-mounted display (HMD).

Protected Fields

bool needsConfigureTexture[Get]
EyeRenderDesc[] eyeDescs[Get]
bool recenterRequested[Get]
int recenterRequestedFrameCount[Get]
int localTrackingSpaceRecenterCount[Get]

Events

System.Action RecenteredPose
Occurs when the head pose is reset.

Properties

Vector3 acceleration[Get]
(Deprecated) Gets the current linear acceleration of the head.
Vector3 angularAcceleration[Get]
(Deprecated) Gets the current angular acceleration of the head in radians per second per second about each axis.
Vector3 velocity[Get]
Gets the current linear velocity of the head in meters per second.
Vector3 angularVelocity[Get]
Gets the current angular velocity of the head in radians per second about each axis.
LatencyData latency[Get]
Gets the current measured latency values.
float appFramerate[Get]
Gets application's frame rate reported by oculus plugin.
int recommendedMSAALevel[Get]
Gets the recommended MSAA level for optimal quality/performance the current device.
float[] displayFrequenciesAvailable[Get]
Gets the list of available display frequencies supported by this hardware.
float displayFrequency[Get]
Gets and sets the current display frequency.

Member Functions

OVRDisplay ( )
Creates an instance of OVRDisplay.
Called by OVRManager.
void Update ( )
Updates the internal state of the OVRDisplay.
Called by OVRManager.
void RecenterPose ( )
Recenters the head pose.
EyeRenderDesc GetEyeRenderDesc
( UnityEngine.XR.XRNode eye )
Gets the resolution and field of view for the given eye.

Protected Functions

void UpdateTextures ( )
void ConfigureEyeDesc
( Node eye )