public static void __changeDebug() { LerpedCore.SetBool(section, !active); EditorMenu.SetChecked(menuName, active); EditorPrefs.SetBool(menuName, active); if (active) { Debug.Log("Debug is enabled!"); } else { Debug.Log("Debug is disabled!"); } }
private static void UpdateState() { EditorApplication.update -= UpdateState; EditorMenu.SetChecked(menuName, active); }
static void OnRecordCommand(CommandExecuteContext ctx) { s_SlaveProfilerWindow.SetRecordingEnabled(!s_SlaveProfilerWindow.IsSetToRecord()); Menu.SetChecked("Edit/Record", s_SlaveProfilerWindow.IsSetToRecord()); }