Class EyesControl
Inherited Members
Namespace: UnityEngine.InputSystem.XR
Assembly: Unity.InputSystem.dll
Syntax
public class EyesControl : InputControl<Eyes>
Properties
fixationPoint
Declaration
public Vector3Control fixationPoint { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
leftEyeOpenAmount
Declaration
public AxisControl leftEyeOpenAmount { get; set; }
Property Value
Type | Description |
---|---|
AxisControl |
leftEyePosition
Declaration
public Vector3Control leftEyePosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
leftEyeRotation
Declaration
public QuaternionControl leftEyeRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
rightEyeOpenAmount
Declaration
public AxisControl rightEyeOpenAmount { get; set; }
Property Value
Type | Description |
---|---|
AxisControl |
rightEyePosition
Declaration
public Vector3Control rightEyePosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
rightEyeRotation
Declaration
public QuaternionControl rightEyeRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
Methods
FinishSetup()
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()
Overrides
Remarks
This method can be overridden to perform control- or device-specific setup work. The most common use case is for looking up child controls and storing them in local getters.
public class MyDevice : InputDevice
{
public ButtonControl button { get; private set; }
public AxisControl axis { get; private set; }
protected override void OnFinishSetup()
{
// Cache controls in getters.
button = GetChildControl("button");
axis = GetChildControl("axis");
}
}</code></pre></example>
ReadUnprocessedValueFromState(void*)
Declaration
public override Eyes ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr |
Returns
Type | Description |
---|---|
Eyes |
Overrides
WriteValueIntoState(Eyes, void*)
Declaration
public override void WriteValueIntoState(Eyes value, void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
Eyes | value | |
void* | statePtr |