Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


colorKeys

All color keys defined in the gradient.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public GradientColorKey[] colorKeys { get; set; }

Remarks

Note that the color keys will be automatically sorted by time value and that it is ensured to always have a minimum of 2 color keys.