docs.unity3d.com
    Show / Hide Table of Contents

    Class XRHandSkeletonDriverUtility

    Utility methods for XRHandSkeletonDriver.

    Inheritance
    Object
    XRHandSkeletonDriverUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.Hands
    Syntax
    public static class XRHandSkeletonDriverUtility

    Methods

    FindJointsFromRoot(XRHandSkeletonDriver, List<String>)

    Set up the joint references for an XRHandSkeletonDriver by checking the hierarchy and comparing the children GameObject's names with the names of the joints. The GameObjects names are expected to either start or end with the name of the joint.

    Declaration
    public static void FindJointsFromRoot(XRHandSkeletonDriver skeletonDriver, List<string> missingJointNames = null)
    Parameters
    Type Name Description
    XRHandSkeletonDriver skeletonDriver

    The XRHandSkeletonDriver component to setup.

    List<String> missingJointNames

    A list of strings that will be cleared and populated with the joints that are missing.

    Remarks

    This method is expensive because it searches the hierarchy by comparing the names of GameObjects so it should not be called frequently. Instead, the joint references can be set once and serialized in either the scene or a prefab.

    Back to top
    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