Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GradientMode

Color interpolation mode used by Gradient.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum GradientMode

Remarks

Additional Resources: Gradient.mode, Gradient.Evaluate.

Fields

Value

Description

BlendLinearly interpolate between the gradient keys.
FixedUse a constant color between the keys.
PerceptualBlendLinearly interpolate between the gradient keys, using a perceptual color space for colors.