Class ARHumanBody
Trackable human body containing the base pose for the body and the body skeleton.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Syntax
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483646)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/api/UnityEngine.XR.ARFoundation.ARHumanBody.html")]
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 |
---|---|
Single | 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. |