public static void DropToDefault() { ISN_Settings.Delete(); ISD_Settings.Delete(); //Looks like uity bug. //As always let's use the delay call magic EditorApplication.delayCall += () => { EditorApplication.delayCall += () => { Refresh(); Resolve(forced: true); }; }; }
public override void OnGUI() { EditorGUI.BeginChangeCheck(); GUILayout.Space(2); int index = m_menuToolbar.Draw(); GUILayout.Space(4); EditorGUILayout.BeginVertical(SA_PluginSettingsWindowStyles.SeparationStyle); GUILayout.Space(5); EditorGUILayout.EndVertical(); m_tabsLayout[index].OnGUI(); if (EditorGUI.EndChangeCheck()) { ISD_Settings.Save(); } }
public static void SaveSettings() { ISN_Settings.Save(); ISD_Settings.Save(); ISN_Preprocessor.Refresh(); }