Class SkeletonVisualizer
Implementation of BodySkeleton prefab
Inheritance
Namespace: TofAr.V0.Body
Assembly: TofArBodyAssembly.dll
Syntax
public class SkeletonVisualizer : ModelVisualizer
Fields
bodyIndex
Body index
Declaration
[SerializeField]
protected uint bodyIndex
Field Value
Type |
---|
System.UInt32 |
boneMaterial
Material of bone
Declaration
[SerializeField]
protected Material boneMaterial
Field Value
Type |
---|
UnityEngine.Material |
boneMesh
Mesh of bone
Declaration
[SerializeField]
protected Mesh boneMesh
Field Value
Type |
---|
UnityEngine.Mesh |
boneRadius
Radius of bone
Declaration
[SerializeField]
protected float boneRadius
Field Value
Type |
---|
System.Single |
castShadows
Cast shadows of bones and joints
Declaration
[SerializeField]
protected bool castShadows
Field Value
Type |
---|
System.Boolean |
jointColors
List of joint colors
Declaration
public Color[] jointColors
Field Value
Type |
---|
UnityEngine.Color[] |
jointMaterial
Material of bone
Declaration
[SerializeField]
protected Material jointMaterial
Field Value
Type |
---|
UnityEngine.Material |
jointMesh
Mesh of bone
Declaration
[SerializeField]
protected Mesh jointMesh
Field Value
Type |
---|
UnityEngine.Mesh |
jointRadius
Radius of bone
Declaration
[SerializeField]
protected float jointRadius
Field Value
Type |
---|
System.Single |
receiveShadows
Receive shadows on bones and joints
Declaration
[SerializeField]
protected bool receiveShadows
Field Value
Type |
---|
System.Boolean |
zThreshold
Distance threshold (not displayed the recognized points that is too close to the camera)
Declaration
[SerializeField]
protected float zThreshold
Field Value
Type |
---|
System.Single |
Properties
BodyIndex
Body index
Declaration
public uint BodyIndex { get; set; }
Property Value
Type |
---|
System.UInt32 |
BoneMaterial
Material of bone
Declaration
public Material BoneMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
BoneMesh
Mesh of bone
Declaration
public Mesh BoneMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
BoneRadius
Radius of bone
Declaration
public float BoneRadius { get; set; }
Property Value
Type |
---|
System.Single |
CastShadows
Cast shadows of bones and joints
Declaration
public bool CastShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
JointMaterial
Material of bone
Declaration
public Material JointMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
JointMesh
Mesh of bone
Declaration
public Mesh JointMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
JointRadius
Radius of bone
Declaration
public float JointRadius { get; set; }
Property Value
Type |
---|
System.Single |
ReceiveShadows
Receive shadows on bones and joints
Declaration
public bool ReceiveShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
ZThreshold
Distance threshold (not displayed the recognized points that is too close to the camera)
Declaration
public float ZThreshold { get; set; }
Property Value
Type |
---|
System.Single |
Methods
Apply(BodyResult)
Display Body recognition result
Declaration
public override void Apply(BodyResult bodyResult)
Parameters
Type | Name | Description |
---|---|---|
BodyResult | bodyResult | Body recognition result data |
Overrides
DrawBone(HumanBodyJoint, HumanBodyJoint, Single, Pose)
Draw bone
Declaration
protected void DrawBone(HumanBodyJoint joint, HumanBodyJoint parentJoint, float radius, Pose anchor)
Parameters
Type | Name | Description |
---|---|---|
HumanBodyJoint | joint | Joint data |
HumanBodyJoint | parentJoint | Parent joint data |
System.Single | radius | Draw radius |
Pose | anchor | Anchor |