Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public SettingsPopup(ArtWindowSettings settings)
 {
     tool = new SettingsEditorTool(() => settings);
     tool.Show();
 }