Class SkeletonVisualizer
BodySkeletonプレファブの実装
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
SkeletonVisualizer
Namespace: TofAr.V0.Body
Assembly: TofArBodyAssembly.dll
Syntax
public class SkeletonVisualizer : ModelVisualizer
Fields
bodyIndex
Bodyインデックス
Declaration
[SerializeField]
protected uint bodyIndex
Field Value
Type |
---|
System.UInt32 |
boneMaterial
骨格の表示マテリアル
Declaration
[SerializeField]
protected Material boneMaterial
Field Value
Type |
---|
UnityEngine.Material |
boneMesh
骨格の表示メッシュ
Declaration
[SerializeField]
protected Mesh boneMesh
Field Value
Type |
---|
UnityEngine.Mesh |
boneRadius
骨格の表示半径
Declaration
[SerializeField]
protected float boneRadius
Field Value
Type |
---|
System.Single |
castShadows
骨格、関節位置の影表示
Declaration
[SerializeField]
protected bool castShadows
Field Value
Type |
---|
System.Boolean |
jointColors
関節色リスト
Declaration
public Color[] jointColors
Field Value
Type |
---|
UnityEngine.Color[] |
jointMaterial
関節の表示マテリアル
Declaration
[SerializeField]
protected Material jointMaterial
Field Value
Type |
---|
UnityEngine.Material |
jointMesh
関節の表示メッシュ
Declaration
[SerializeField]
protected Mesh jointMesh
Field Value
Type |
---|
UnityEngine.Mesh |
jointRadius
関節の表示半径
Declaration
[SerializeField]
protected float jointRadius
Field Value
Type |
---|
System.Single |
receiveShadows
骨格、関節位置に対する影の影響
Declaration
[SerializeField]
protected bool receiveShadows
Field Value
Type |
---|
System.Boolean |
zThreshold
距離閾値(カメラに近すぎる位置に認識された点を表示させないようにする)
Declaration
[SerializeField]
protected float zThreshold
Field Value
Type |
---|
System.Single |
Properties
BodyIndex
Bodyインデックス
Declaration
public uint BodyIndex { get; set; }
Property Value
Type |
---|
System.UInt32 |
BoneMaterial
骨格の表示マテリアル
Declaration
public Material BoneMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
BoneMesh
骨格の表示メッシュ
Declaration
public Mesh BoneMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
BoneRadius
骨格の表示半径
Declaration
public float BoneRadius { get; set; }
Property Value
Type |
---|
System.Single |
CastShadows
骨格、関節位置の影表示
Declaration
public bool CastShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
JointMaterial
関節の表示マテリアル
Declaration
public Material JointMaterial { get; set; }
Property Value
Type |
---|
UnityEngine.Material |
JointMesh
関節の表示メッシュ
Declaration
public Mesh JointMesh { get; set; }
Property Value
Type |
---|
UnityEngine.Mesh |
JointRadius
関節の表示半径
Declaration
public float JointRadius { get; set; }
Property Value
Type |
---|
System.Single |
ReceiveShadows
骨格、関節位置に対する影の影響
Declaration
public bool ReceiveShadows { get; set; }
Property Value
Type |
---|
System.Boolean |
ZThreshold
距離閾値(カメラに近すぎる位置に認識された点を表示させないようにする)
Declaration
public float ZThreshold { get; set; }
Property Value
Type |
---|
System.Single |
Methods
Apply(BodyResult)
Body認識結果を表示する
Declaration
public override void Apply(BodyResult bodyResult)
Parameters
Type | Name | Description |
---|---|---|
BodyResult | bodyResult | Body認識結果データ |
Overrides
DrawBone(HumanBodyJoint, HumanBodyJoint, Single, Pose)
骨格表示
Declaration
protected void DrawBone(HumanBodyJoint joint, HumanBodyJoint parentJoint, float radius, Pose anchor)
Parameters
Type | Name | Description |
---|---|---|
HumanBodyJoint | joint | 関節データ |
HumanBodyJoint | parentJoint | 親関節データ |
System.Single | radius | 表示半径 |
Pose | anchor | アンカー |