Example #1
0
 /// <summary>
 /// Displays the handle preferences. They will be displayed in the preference menu and the top of the inspector.
 /// </summary>
 new protected static void DisplayHandlePreferences()
 {
     EditorGUIX.DisplayHandlePropertyEditor(
         "Vision", s_VisionHandleTogglePreference, s_VisionHandleColorPreference
         );
     EditorGUIX.DisplayHandlePropertyEditor <AwarenessEditor>(
         "Hearing", s_HearingHandleTogglePreference, s_HearingHandleColorPreference
         );
 }
Example #2
0
 /// <summary>
 /// Raises the preference menu GUI event.
 /// </summary>
 private static void OnPreferenceMenuGUI()
 {
     EditorGUIX.DisplayHandlePropertyEditor <HyperTextEditor>(
         "Hitboxes", s_HitboxTogglePreference, s_HitboxColorPreference
         );
     EditorGUI.BeginChangeCheck();
     {
         s_DebugSceneModePreference.CurrentValue = (DebugSceneMode)EditorGUILayout.EnumPopup(
             "Debug Scene Mode", s_DebugSceneModePreference.CurrentValue
             );
     }
     if (EditorGUI.EndChangeCheck())
     {
         SceneView.RepaintAll();
     }
 }
 /// <summary>
 /// Displays the handle preferences. They will be displayed in the preference menu and the top of the inspector.
 /// </summary>
 new protected static void DisplayHandlePreferences()
 {
     EditorGUIX.DisplayHandlePropertyEditor("Helix", s_HandleTogglePreference, s_HandleColorPreference);
 }
Example #4
0
 /// <summary>
 /// Displays the angular limit handle property editor.
 /// </summary>
 public static void DisplayAngularLimitHandlePropertyEditor()
 {
     EditorGUIX.DisplayHandlePropertyEditor(
         "Angular Limit", s_AngularLimitHandlePreference, s_AngularLimitHandleSizePreference
         );
 }