Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Gradient.mode

public GradientMode mode;

Description

Controls how the gradient colors are interpolated.

The default interpolation mode is GradientMode.Blend. Note that GradientMode.PerceptualBlend can often result in a more natural looking color blend, especially between very different colors. It is slightly more expensive to calculate than the default Blend mode.

Additional resources: GradientMode, Gradient.Evaluate.