mode
Controls how the gradient colors are interpolated.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public GradientMode mode { get; set; }
Remarks
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.