Class WindowsMRUsages
Input Usages, consumed by the UnityEngine.XR.InputDevice class in order to retrieve inputs. These usages are all WindowsMR specific.
Namespace: Unity.XR.WindowsMR
Syntax
public static class WindowsMRUsages : object
Fields
AirTap
A bool representing if the user's index finger in the down position.
Declaration
public static InputFeatureUsage<bool> AirTap
Field Value
Type | Description |
---|---|
InputFeatureUsage<Boolean> |
Remarks
This data is HoloLens-specific and can also be queried using CommonUsages.triggerButton.
EyeGazeAvailable
A bool letting a user know eye gaze support is available. Always check this prior to actually gettin the eye gaze. This will be false on any platform that doesn't support eye gaze tracking. This may be false on platforms that do support eye gaze tracking but for one reason or another gaze information may not be available.
Declaration
public static InputFeatureUsage<bool> EyeGazeAvailable
Field Value
Type | Description |
---|---|
InputFeatureUsage<Boolean> |
Remarks
This data is HoloLens2-specific.
EyeGazePosition
A Vector3 representing the direction that the users eyes are looking in.
Declaration
public static InputFeatureUsage<Vector3> EyeGazePosition
Field Value
Type | Description |
---|---|
InputFeatureUsage<Vector3> |
Remarks
This data is HoloLens2-specific.
EyeGazeRotation
A Vector3 representing the rotation to apply to Vector3.forward to generate the eye gaze direction.
Declaration
public static InputFeatureUsage<Quaternion> EyeGazeRotation
Field Value
Type | Description |
---|---|
InputFeatureUsage<Quaternion> |
Remarks
This data is HoloLens2-specific.
EyeGazeTracked
A bool letting a user know eye gaze is being tracked.
Declaration
public static InputFeatureUsage<bool> EyeGazeTracked
Field Value
Type | Description |
---|---|
InputFeatureUsage<Boolean> |
Remarks
This data is HoloLens2-specific.
PointerPosition
A Vector3 position representing the tip of the controller pointing forward.
Declaration
public static InputFeatureUsage<Vector3> PointerPosition
Field Value
Type | Description |
---|---|
InputFeatureUsage<Vector3> |
PointerRotation
A Quaternion rotation representing the tip of the controller pointing forward.
Declaration
public static InputFeatureUsage<Quaternion> PointerRotation
Field Value
Type | Description |
---|---|
InputFeatureUsage<Quaternion> |
PositionAccuracy
A integer value that reports position data accuracy status. A value of 0 is accurate position. A value of 1 is estimated position.
Declaration
public static InputFeatureUsage<uint> PositionAccuracy
Field Value
Type | Description |
---|---|
InputFeatureUsage<UInt32> |
Remarks
This data is HoloLens2-specific.
SourceLossRisk
A [0,1] value that reports the risk that detection of the hand will be lost.
Declaration
public static InputFeatureUsage<float> SourceLossRisk
Field Value
Type | Description |
---|---|
InputFeatureUsage<Single> |
SourceMitigationDirection
A Vector3 direction that reports the suggested direction the user should move his hand if he is at risk of losing tracking.
Declaration
public static InputFeatureUsage<Vector3> SourceMitigationDirection
Field Value
Type | Description |
---|---|
InputFeatureUsage<Vector3> |