Exemplo n.º 1
0
        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);
                };
            };
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 public static void SaveSettings()
 {
     ISN_Settings.Save();
     ISD_Settings.Save();
     ISN_Preprocessor.Refresh();
 }