public static void Load() { SettingsEditor.Load(); if (i != null) { i.Resize(); return; } i = JsonUtility.FromJson <SettingsProject>(fs.ReadAllText(Package.projectSettingsPath)); if (i == null) { i = new SettingsProject(); Save(); } i.Resize(); }
public static void Save() { File.WriteAllText(projectSettingsPath, JsonUtility.ToJson(i, true)); SettingsEditor.Save(); }