docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Overrides
    ValueType.ToString()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023