docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetPose

    SetPose(ref XRHandJoint, Pose)

    Sets the pose that can be retrieved from TryGetPose(out Pose) and sets the flag for that pose to be valid.

    Declaration
    public static void SetPose(this ref XRHandJoint joint, Pose pose)
    Parameters
    Type Name Description
    XRHandJoint joint

    The invoking joint for this extension method. To call this method, call .SetPose(modifiedPose) on an XRHandJoint.

    Pose pose

    The Pose to set for the joint.

    Remarks

    After manipulating data for a particular joint, be sure to assign it back to the array you got it from, as you can only manipulate copies of objects from a NativeArray.

    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)