docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRHumanBody

    Container for the data that represents a trackable human body.

    Implements
    IEquatable<XRHumanBody>
    ITrackable
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public struct XRHumanBody : IEquatable<XRHumanBody>, ITrackable

    Properties

    defaultValue

    Get the default human body data.

    Declaration
    public static XRHumanBody defaultValue { get; }
    Property Value
    Type Description
    XRHumanBody

    The default human body data.

    estimatedHeightScaleFactor

    The scale factor that relates the implementation's default body height to the estimated height.

    Declaration
    public float estimatedHeightScaleFactor { get; }
    Property Value
    Type Description
    float

    The scale factor that relates the implementation's default body height to the estimated height.

    nativePtr

    The native pointer to the implementation-specific human body.

    Declaration
    public IntPtr nativePtr { get; }
    Property Value
    Type Description
    IntPtr

    The native pointer to the implementation-specific human body.

    pose

    The pose for the human body origin.

    Declaration
    public Pose pose { get; }
    Property Value
    Type Description
    Pose

    The pose for the human body origin.

    trackableId

    The trackable identifier for the human body.

    Declaration
    public TrackableId trackableId { get; }
    Property Value
    Type Description
    TrackableId

    The trackable identifier for the human body.

    trackingState

    The tracking state for the human body.

    Declaration
    public TrackingState trackingState { get; }
    Property Value
    Type Description
    TrackingState

    The tracking state for the human body.

    Methods

    Equals(object)

    Tests for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRHumanBody and Equals(XRHumanBody) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRHumanBody)

    Tests for equality.

    Declaration
    public bool Equals(XRHumanBody other)
    Parameters
    Type Name Description
    XRHumanBody other

    The other XRHumanBody to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRHumanBody, otherwise false.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code generated from this object's fields.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(XRHumanBody, XRHumanBody)

    Tests for equality. Same as Equals(XRHumanBody).

    Declaration
    public static bool operator ==(XRHumanBody lhs, XRHumanBody rhs)
    Parameters
    Type Name Description
    XRHumanBody lhs

    The left-hand side of the comparison.

    XRHumanBody rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(XRHumanBody, XRHumanBody)

    Tests for inequality. Same as !Equals(XRHumanBody).

    Declaration
    public static bool operator !=(XRHumanBody lhs, XRHumanBody rhs)
    Parameters
    Type Name Description
    XRHumanBody lhs

    The left-hand side of the comparison.

    XRHumanBody rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is not equal to rhs, otherwise false.

    Implements

    IEquatable<T>
    ITrackable
    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)