Class HandInteractionProfile.HandInteraction
A new interaction profile for hand tracking input device to provide actions through the OpenXR action system.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.OpenXR .Features.Interactions
Assembly: solution.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "Hand Interaction (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class HandInteractionProfile.HandInteraction : XRController
Properties
devicePose
A Pose
Declaration
[Preserve]
[InputControlAttribute]
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. This value is equivalent to mapping gripPose/position.
Declaration
[Preserve]
[InputControlAttribute]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
A Quaternion
Declaration
[Preserve]
[InputControlAttribute]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
graspReady
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public ButtonControl graspReady { get; }
Property Value
Type | Description |
---|---|
Button |
graspValue
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public AxisControl graspValue { get; }
Property Value
Type | Description |
---|---|
Axis |
isTracked
A Button
Declaration
[Preserve]
[InputControlAttribute]
public ButtonControl isTracked { get; }
Property Value
Type | Description |
---|---|
Button |
pinchPose
A Pose
Declaration
[Preserve]
[InputControlAttribute]
public PoseControl pinchPose { get; }
Property Value
Type | Description |
---|---|
Pose |
pinchPosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the pinch position. This value is equivalent to mapping pinchPose/position.
Declaration
[Preserve]
[InputControlAttribute]
public Vector3Control pinchPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pinchReady
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public ButtonControl pinchReady { get; }
Property Value
Type | Description |
---|---|
Button |
pinchRotation
A Quaternion
Declaration
[Preserve]
[InputControlAttribute]
public QuaternionControl pinchRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
pinchValue
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public AxisControl pinchValue { get; }
Property Value
Type | Description |
---|---|
Axis |
pointer
A Pose
Declaration
[Preserve]
[InputControlAttribute]
public PoseControl pointer { get; }
Property Value
Type | Description |
---|---|
Pose |
pointerActivateReady
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public ButtonControl pointerActivateReady { get; }
Property Value
Type | Description |
---|---|
Button |
pointerActivateValue
An Axis
Declaration
[Preserve]
[InputControlAttribute]
public AxisControl pointerActivateValue { get; }
Property Value
Type | Description |
---|---|
Axis |
pointerPosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the aim position. This value is equivalent to mapping aimPose/position.
Declaration
[Preserve]
[InputControlAttribute]
public Vector3Control pointerPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pointerRotation
A Quaternion
Declaration
[Preserve]
[InputControlAttribute]
public QuaternionControl pointerRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
pokePose
A Pose
Declaration
[Preserve]
[InputControlAttribute]
public PoseControl pokePose { get; }
Property Value
Type | Description |
---|---|
Pose |
pokePosition
A Vector3Control required for backwards compatibility with the XRSDK layouts. This is the poke position. This value is equivalent to mapping pokePose/position.
Declaration
[Preserve]
[InputControlAttribute]
public Vector3Control pokePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
pokeRotation
A Quaternion
Declaration
[Preserve]
[InputControlAttribute]
public QuaternionControl pokeRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
trackingState
A Integer
Declaration
[Preserve]
[InputControlAttribute]
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()