Method GetHumanBodyPose2DJoints
GetHumanBodyPose2DJoints(XRHumanBodyPose2DJoint, int, int, ScreenOrientation, Allocator)
Method to be implemented by the provider to get the human body pose 2D joints for the current frame.
Declaration
public virtual NativeArray<XRHumanBodyPose2DJoint> GetHumanBodyPose2DJoints(XRHumanBodyPose2DJoint defaultHumanBodyPose2DJoint, int screenWidth, int screenHeight, ScreenOrientation screenOrientation, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
XRHuman |
defaultHumanBodyPose2DJoint | The default value for the body pose 2D joint. |
int | screenWidth | The width of the screen, in pixels. |
int | screenHeight | The height of the screen, in pixels. |
Screen |
screenOrientation | The orientation of the device so that the joint positions can be adjusted as required. |
Allocator | allocator | The allocator to use for the returned array memory. |
Returns
Type | Description |
---|---|
Native |
The array of body pose 2D joints. |
Remarks
The returned array can be empty if the system is not enabled for human body pose 2D or if the system does not detect a human in the camera image.
Exceptions
Type | Condition |
---|---|
Not |
Thrown if the implementation does not support human body pose 2D. |