文档

Unity Engine

Unity Engine

mode

Controls how the gradient colors are interpolated.
阅读时间1 分钟最后更新于 13 小时前

Definition

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.