docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct XRHand

    Represents a hand from an XRHandSubsystem. Do not create this yourself - get hand objects from the leftHand and rightHand properties of the XRHandSubsystem.

    Implements
    IEquatable<XRHand>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.Hands
    Assembly: solution.dll
    Syntax
    public struct XRHand : IEquatable<XRHand>
    Remarks

    See Hand tracking for a description of the hand data model and how to access the tracking data.

    Properties

    Name Description
    handedness

    Represents which hand this is.

    isTracked

    Whether the subsystem is currently tracking this hand's root pose and joints.

    rootPose

    Root pose for the hand.

    Methods

    Name Description
    Equals(object)

    Tests for equality.

    Equals(XRHand)

    Tests for equality.

    GetHashCode()

    Computes a hash code from all fields of XRHand.

    GetJoint(XRHandJointID)

    Retrieves an XRHandJoint by its ID.

    ToString()

    Returns a string representation of the XRHand.

    Operators

    Name Description
    operator ==(XRHand, XRHand)

    Tests for equality. Same as Equals(XRHand).

    operator !=(XRHand, XRHand)

    Tests for inequality. Same as !Equals(XRHand)

    Extension Methods

    XRFingerShapeMath.CalculateFingerShape(XRHand, XRHandFingerID, XRFingerShapeTypes)
    XRFingerShapeMath.CalculateFingerShape(XRHand, XRHandFingerID, XRFingerShapeTypes, XRFingerShapeConfiguration)
    XRHandProcessingUtility.GetRawJointArray(XRHand)
    XRHandProcessingUtility.SetRootPose(ref XRHand, Pose)
    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)