Beispiel #1
0
        private static void SaveInstance(ACTkSettings settingsInstance)
        {
            if (!System.IO.Directory.Exists(Directory))
            {
                System.IO.Directory.CreateDirectory(Directory);
            }

            try
            {
                UnityEditorInternal.InternalEditorUtility.SaveToSerializedFileAndForget(new Object[] { settingsInstance }, Path, true);
            }
            catch (Exception ex)
            {
                Debug.LogError(EditorTools.ConstructError("Can't save settings!\n" + ex));
            }
        }
Beispiel #2
0
 public static void Delete()
 {
     instance = null;
     EditorTools.DeleteFile(Path);
 }
Beispiel #3
0
 private static void ShowSettingsWindow()
 {
     ACTkSettings.Show();
 }