Class ARHumanBodyManager
The manager for the human body subsystem.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483647)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARHumanBodyManager.html")]
public sealed class ARHumanBodyManager : ARTrackableManager<XRHumanBodySubsystem, XRHumanBodySubsystemDescriptor, XRHumanBodySubsystem.Provider, XRHumanBody, ARHumanBody>
Properties
Name | Description |
---|---|
gameObjectName | The name for any generated GameObjects. |
humanBodyPose2DEstimationEnabled | Whether 2D body pose tracking is enabled. This method is obsolete. Use pose2DRequested or pose2DEnabled instead. |
humanBodyPose3DEstimationEnabled | Whether 3D body pose tracking is enabled. This method is obsolete. Use pose3DEnabled or pose3DRequested instead. |
humanBodyPose3DScaleEstimationEnabled | Whether 3D body pose scale estimation is enabled. This method is obsolete. Use pose3DScaleEstimationEnabled or pose3DScaleEstimationRequested instead. |
humanBodyPrefab | The Prefab object to instantiate at the location of the human body origin. |
pose2DEnabled | Whether 2D human pose estimation is enabled. While pose2DRequested tells you whether 2D pose estimation has been requested, this property tells you whether 2D pose estimation is currently active in the subsystem. |
pose2DRequested | Whether 2D human pose estimation is requested. |
pose3DEnabled | Whether 3D human pose estimation is enabled. |
pose3DRequested | Whether 3D human pose estimation is requested. |
pose3DScaleEstimationEnabled | Whether 3D human body scale estimation is enabled. |
pose3DScaleEstimationRequested | Whether 3D human body scale estimation is requested. |
Methods
Name | Description |
---|---|
GetHumanBody(TrackableId) | Get the human body matching the trackable identifier. |
GetHumanBodyPose2DJoints(Allocator) | Gets the human body pose 2D joints for the current frame. |
GetPrefab() | Gets the Prefab object to instantiate at the location of the trackable. |
OnAfterSetSessionRelativeData(ARHumanBody, XRHumanBody) | Callback after the session relative data has been set to update the skeleton for the human body. |
OnBeforeStart() | Callback before the subsystem is started (but after it is created). |
OnDestroy() | Callback as the manager is being destroyed. |
OnTrackablesChanged(List<ARHumanBody>, List<ARHumanBody>, List<ARHumanBody>) | Callback when the trackable deltas are being reported. |
Events
Name | Description |
---|---|
humanBodiesChanged | The event that is fired when a change to the detected human bodies is reported. |