docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRHandRelativeOrientation

    Defines hand orientation relative to the user and a target Transform.

    Inheritance
    object
    XRHandRelativeOrientation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Hands.Gestures
    Assembly: Unity.XR.Hands.dll
    Syntax
    [Serializable]
    public class XRHandRelativeOrientation

    Properties

    targetConditions

    The list of conditions to check for the hand's orientation, relative to a target Transform.

    Declaration
    public XRHandRelativeOrientation.TargetCondition[] targetConditions { get; set; }
    Property Value
    Type Description
    TargetCondition[]
    Remarks

    All of these conditions use targetTransform.

    targetTransform

    The target transform that the targetConditions are relative to.

    Declaration
    public Transform targetTransform { get; set; }
    Property Value
    Type Description
    Transform
    Remarks

    This is not used for userConditions.

    userConditions

    The list of conditions to check for the hand's orientation, relative to the user.

    Declaration
    public XRHandRelativeOrientation.UserCondition[] userConditions { get; set; }
    Property Value
    Type Description
    UserCondition[]

    Methods

    CheckConditions(Pose, Handedness)

    Checks the hand orientation conditions to determine whether the hand is in the correct orientation.

    Declaration
    public bool CheckConditions(Pose rootPose, Handedness handedness)
    Parameters
    Type Name Description
    Pose rootPose

    The root pose of the hand.

    Handedness handedness

    The handedness of the hand.

    Returns
    Type Description
    bool

    Whether all the conditions are met.

    In This Article
    Back to top
    Copyright © 2024 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)