Class ARHumanBody
Trackable human body containing the base pose for the body and the body skeleton.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483646)]
public class ARHumanBody : ARTrackable<XRHumanBody, ARHumanBody>, IDisposable
Properties
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. |
joints
The array of joints making up the human body skeleton.
Declaration
public NativeArray<XRHumanBodyJoint> joints { get; }
Property Value
Type | Description |
---|---|
NativeArray<XRHumanBodyJoint> | The array of joints making up the human body skeleton. |
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. |
Methods
Dispose()
Disposes the joints array, if it was created.
Declaration
public void Dispose()
ToString()
Generates a string representation of this ARHumanBody. Floating point numbers use 3 digits of precision after the decimal point.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this ARHumanBody. |
Overrides
ToString(string)
Generates a string representation of this ARHumanBody.
Declaration
public string ToString(string floatingPointFormat)
Parameters
Type | Name | Description |
---|---|---|
string | floatingPointFormat | The floating point format specifier used for floating point properties. |
Returns
Type | Description |
---|---|
string | A string representation of this ARHumanBody. |