Esempio n. 1
0
 public virtual void OnGUI(Setting setting)
 {
     if (PaneGUI.BeginPart(setting.label, this))
     {
         PaneGUI.DrawSettings(settings);
     }
     PaneGUI.EndPart();
 }
Esempio n. 2
0
 public override void OnGUI(string searchContext)
 {
     settingsContainer?.Check();
     EditorGUILayout.BeginVertical(Styles.paneStyle);
     EditorGUIUtility.labelWidth = 250;
     PaneGUI.DrawSettings(settingsContainer?.GetSettings());
     OnFooterGUI();
     EditorGUILayout.EndVertical();
     if (GUI.changed)
     {
         settingsContainer?.Save();
         OnChange?.Invoke();
     }
 }