public void Remove(NPRColorProfile p)
        {
            if (items.Contains(p))
            {
                items.Remove(p);
            }

            DestroyImmediate(p, true);
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
        }
        public void AddNew()
        {
            NPRColorProfile p = ScriptableObject.CreateInstance(typeof(NPRColorProfile)) as NPRColorProfile;

            p.name = "New Color Profile";

            AssetDatabase.AddObjectToAsset(p, this);
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
            items.Add(p);
        }
Beispiel #3
0
        public bool Set(NPRColorProfile p)
        {
            LinkToProfile();

            bool b = p == _profile;

            Debug.Log(b, p);
            if (b)
            {
                Set();
            }

            return(b);
        }