public static z_ColorPalette AddNew() { string path = z_EditorUtility.FindFolder(z_Pref.ProductName + "/" + "Color Palettes"); if (string.IsNullOrEmpty(path)) { path = "Assets"; } path = AssetDatabase.GenerateUniqueAssetPath(path + "/New Color Palette.asset"); if (!string.IsNullOrEmpty(path)) { z_ColorPalette palette = ScriptableObject.CreateInstance <z_ColorPalette>(); palette.SetDefaultValues(); AssetDatabase.CreateAsset(palette, path); AssetDatabase.Refresh(); EditorGUIUtility.PingObject(palette); return(palette); } return(null); }
private void SetColorPalette(z_ColorPalette palette) { colorPalette = palette; RefreshAvailablePalettes(); }
public void CopyTo(z_ColorPalette target) { target.colors = new List <Color>(colors); }
public void CopyTo(z_ColorPalette target) { target.colors = new List<Color>(colors); }