Struct XRHand
Represents a hand from an XRHandSubsystem. Do not create this yourself - only use a hand from leftHand or rightHand.
Namespace: UnityEngine.XR.Hands
Syntax
public struct XRHand
Properties
handedness
Represents which hand this is.
Declaration
public readonly Handedness handedness { get; }
Property Value
Type | Description |
---|---|
Handedness |
rootPose
Root pose for the hand. All joint data is relative to this parent pose.
Declaration
public readonly Pose rootPose { get; }
Property Value
Type | Description |
---|---|
Pose |
Methods
GetJoint(XRHandJointID)
Retrieves an XRHandJoint by its ID.
Declaration
public XRHandJoint GetJoint(XRHandJointID id)
Parameters
Type | Name | Description |
---|---|---|
XRHandJointID | id | ID of the required joint. |
Returns
Type | Description |
---|---|
XRHandJoint | The XRHandJoint corresponding the ID passed in. |
ToString()
Returns a string representation of the XRHand.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representation of the value. |