SetChecked() private method

private SetChecked ( string menuPath, bool isChecked ) : void
menuPath string
isChecked bool
return void
Exemplo n.º 1
0
 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!");
     }
 }
Exemplo n.º 2
0
 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());
 }