Struct XRHumanBody
Container for the data that represents a trackable human body.
Inherited Members
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 |
Returns
Type | Description |
---|---|
bool |
|
Overrides
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 |
|
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
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 |
|
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 |
|