예제 #1
0
 void buildMovingCursorControlGUI()
 {
     if (PrefabTarget.enableCursorControl)
     {
         if (GUILayout.Button("Hand Cursor Control: ON"))
         {
             PrefabTarget.enableCursorControl = false;
         }
     }
     else
     {
         if (GUILayout.Button("Hand Cursor Control: OFF"))
         {
             PrefabTarget.enableCursorControl = true;
         }
     }
     if (PrefabTarget.enableCursorControl)
     {
         PrefabTarget.enableCursorOnStartup = EditorGUILayout.Toggle("Enable on Startup", PrefabTarget.enableCursorOnStartup);
         EditorGUIUtils.BuildCustomControls(_target, "handCursorCallback");
     }
 }
예제 #2
0
 void buildRawTrackingControlGUI()
 {
     if (PrefabTarget.enableRawTrackingControl)
     {
         if (GUILayout.Button("Hand Tracking Control (RAW): ON"))
         {
             PrefabTarget.enableRawTrackingControl = false;
         }
     }
     else
     {
         if (GUILayout.Button("Hand Tracking Control (RAW): OFF"))
         {
             PrefabTarget.enableRawTrackingControl = true;
         }
     }
     if (PrefabTarget.enableRawTrackingControl)
     {
         PrefabTarget.enableRawTrackingOnStartup = EditorGUILayout.Toggle("Enable on Startup", PrefabTarget.enableRawTrackingOnStartup);
         EditorGUIUtils.BuildCustomControls(_target, "handTrackingCallback");
     }
 }