docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetVisionOSRotation

    TryGetVisionOSRotation(XRHandJoint, out Quaternion)

    Gets the pose of the joint, if available, but without the Unity-defined change to the rotation to make the reported rotation cross-platform.

    Declaration
    public static bool TryGetVisionOSRotation(this XRHandJoint joint, out Quaternion rotation)
    Parameters
    Type Name Description
    XRHandJoint joint

    The joint this extension method extends. To call this extension method, write it like myJoint.TryGetApplyRotation(out var rotation).

    Quaternion rotation

    If this method returns true, this will be populated with the Apple-defined rotation for the given joint, but still converted to Unity space.

    Returns
    Type Description
    bool

    true if successful and the rotation was available, false otherwise.

    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)