/// <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 ); }
/// <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); }
/// <summary> /// Displays the angular limit handle property editor. /// </summary> public static void DisplayAngularLimitHandlePropertyEditor() { EditorGUIX.DisplayHandlePropertyEditor( "Angular Limit", s_AngularLimitHandlePreference, s_AngularLimitHandleSizePreference ); }