docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ToIndex

    ToIndex(XRHandJointID)

    Call .ToIndex() on a XRHandJointID to get its corresponding index into an array of joint data.

    Declaration
    public static int ToIndex(this XRHandJointID jointId)
    Parameters
    Type Name Description
    XRHandJointID jointId

    ID of the joint to convert to an index.

    Returns
    Type Description
    int

    The index matching the ID passed in.

    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)