Class XRHMD
The base type of all XR head mounted displays. This can help organize shared behaviour across all HMDs.
Inherited Members
Namespace: UnityEngine.InputSystem.XR
Assembly: Unity.InputSystem.dll
Syntax
public class XRHMD : TrackedDevice
Remarks
To give your head tracking an extra update before rendering: First, enable before render updates on your Device.
// JSON
{
"name" : "MyHMD",
"extend" : "HMD",
"beforeRender" : "Update"
}
Then, make sure you put extra StateEvents
for your HMD on the queue right in time before rendering. Also, if your HMD is a combination of non-tracking and tracking controls, you can update just the tracking by sending a delta event instead of a full state event.
Properties
centerEyePosition
Accessor for center eye position.
Declaration
public Vector3Control centerEyePosition { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3Control |
centerEyeRotation
Accessor for center eye rotation.
Declaration
public QuaternionControl centerEyeRotation { get; protected set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
leftEyePosition
Accessor for left eye position.
Declaration
public Vector3Control leftEyePosition { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3Control |
leftEyeRotation
Accessor for left eye rotation.
Declaration
public QuaternionControl leftEyeRotation { get; protected set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
rightEyePosition
Accessor for right eye position.
Declaration
public Vector3Control rightEyePosition { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3Control |
rightEyeRotation
Accessor for right eye rotation.
Declaration
public QuaternionControl rightEyeRotation { get; protected set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
Methods
FinishSetup()
Override for FinishSetup().
Declaration
protected override void FinishSetup()