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()); }
public override void SwapColors(PalleteSwapValuesBase values) { image.material = values.Mat; base.SwapColors(values); }