Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PerceptualBlend

Linearly interpolate between the gradient keys, using a perceptual color space for colors.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
PerceptualBlend = 2

Remarks

This mode finds the two keys adjacent to the requested evaluation time, and interpolates between them.
Color keys are interpolated using a perceptual "Oklab" color space, which often produces more visually pleasing results than a simple GradientMode.Blend interpolation. It is slightly more expensive to calculate than the simple blend mode though.