docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetJoint

    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.

    Remarks

    The joint data is stored in an internal native array that isn't copied if you make a shallow copy of an XRHand object. This native array is modified each time A hand update occurs. Calling this function from a copied XRHand retrieves the latest hand data, not the data from when the hand object was copied. To take a snapshot of the joint data for use later, you must copy each individual XRHandJoint object.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)