Class MicrosoftHandInteraction.HoloLensHand
An Input System device based off the hand interaction profile in the Hand Interaction Extension. Enabled through Microsoft
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "Hololens Hand (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class MicrosoftHandInteraction.HoloLensHand : XRController
Properties
devicePose
A Button
Declaration
[Preserve]
[InputControl(offset = 0, alias = "device", usage = "Device")]
public PoseControl devicePose { get; }
Property Value
Type | Description |
---|---|
Pose |
devicePosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the device position, or grip position. This value is equivalent to mapping devicePose/position.
Declaration
[Preserve]
[InputControl(offset = 20, alias = "gripPosition")]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 32, alias = "gripOrientation")]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
isTracked
A Button
Declaration
[Preserve]
[InputControl(offset = 132)]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
pointer
A Button
Declaration
[Preserve]
[InputControl(offset = 0, usage = "Pointer")]
public PoseControl pointer { get; }
Property Value
Type | Description |
---|---|
Pose |
pointerPosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the pointer position. This value is equivalent to mapping pointerPose/position.
Declaration
[Preserve]
[InputControl(offset = 80)]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A Quaternion
Declaration
[Preserve]
[InputControl(offset = 92, alias = "pointerOrientation")]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
select
An Axis
Declaration
[Preserve]
[InputControl(usage = "PrimaryAxis")]
public AxisControl select { get; }
Property Value
Type | Description |
---|---|
Axis |
selectPressed
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "Primary", "selectbutton" }, usages = new string[] { "PrimaryButton" })]
public ButtonControl selectPressed { get; }
Property Value
Type | Description |
---|---|
Button |
squeeze
An Axis
Declaration
[Preserve]
[InputControl(alias = "Secondary", usage = "Grip")]
public AxisControl squeeze { get; }
Property Value
Type | Description |
---|---|
Axis |
squeezePressed
A Button
Declaration
[Preserve]
[InputControl(aliases = new string[] { "GripButton", "squeezeClicked" }, usages = new string[] { "GripButton" })]
public ButtonControl squeezePressed { get; }
Property Value
Type | Description |
---|---|
Button |
trackingState
A Integer
Declaration
[Preserve]
[InputControl(offset = 136)]
public IntegerControl trackingState { get; }
Property Value
Type | Description |
---|---|
Integer |
Methods
FinishSetup()
Internal call used to assign controls to the the correct element.
Declaration
protected override void FinishSetup()