Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
BodyTrackerInspector.cs
Go to the documentation of this file.
1using UnityEditor;
2using UnityEngine;
3
4namespace Spelunx.Orbbec {
5 [CustomEditor(typeof(BodyTracker))]
6 public class BodyTrackerInspector : Editor {
7 public override void OnInspectorGUI() {
8 DrawDefaultInspector();
9
10 BodyTracker bodyTracker = (BodyTracker)target;
11 if (GUILayout.Button("Turn On Skeleton")) {
12 bodyTracker.ShowSkeleton(true);
13 }
14
15 if (GUILayout.Button("Turn Off Skeleton")) {
16 bodyTracker.ShowSkeleton(false);
17 }
18 }
19 }
20}
BodyTracker represents the BodyData from the ORBBEC sensor as a skeleton. Important: BodyTracker pref...
Definition: BodyTracker.cs:10
void ShowSkeleton(bool show)
Show or hide the skeleton in the game scene.
Definition: BodyTracker.cs:229