Exemple #1
0
    public virtual void SwapColors(PalleteSwapValuesBase values)
    {
#if UNITY_EDITOR
        SwapDefinition = values;
#endif
        if (Mat == null || seekDefinition == null || values == null)
        {
            return;
        }

        Mat.SetColorArray("_SeekColors", seekDefinition.colors);

        var SwapColors = new List <Color>(values.Colors);
        while (SwapColors.Count < 10)
        {
            SwapColors.Add(Color.clear);
        }
        Mat.SetColorArray("_OutputColors", SwapColors.ToArray());
    }
Exemple #2
0
 public override void SwapColors(PalleteSwapValuesBase values)
 {
     image.material = values.Mat;
     base.SwapColors(values);
 }