public void Load() { var result = AssetDatabase.LoadAssetAtPath(SETTINGS_PATH, typeof(ArtWindowSettings)) as ArtWindowSettings; if (result == null) { result = ScriptableObject.CreateInstance <ArtWindowSettings>(); AssetDatabase.CreateAsset(result, SETTINGS_PATH); result = AssetDatabase.LoadAssetAtPath(SETTINGS_PATH, typeof(ArtWindowSettings)) as ArtWindowSettings; } Value = result; }
public SettingsPopup(ArtWindowSettings settings) { tool = new SettingsEditorTool(() => settings); tool.Show(); }