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)); } }
public static void Delete() { instance = null; EditorTools.DeleteFile(Path); }
private static void ShowSettingsWindow() { ACTkSettings.Show(); }