Rich Gradient is a serializable gradient for any MonoBehaviour or ScriptableObject. It stores 32 color keys and 32 alpha keys. Unity's built-in Gradient stores 8 of each.A RichGradient field is drawn as a swatch. Click it to edit the gradient:• Click the top row to add an alpha key, or the bottom row to add a color key.• Drag a key to move it. Drag it off the row, or press Delete or Backspace, to remove it.• One color key and one alpha key always remain.• Alpha is edited with its own slider.Blend interpolates color in RGB. Perceptual Blend interpolates in OKLab, which keeps transitions between saturated colors more even. Fixed holds each key until the next key. Alpha follows the same mode.Evaluate returns the color at a time from 0 to 1. You can replace the keys, change the mode, clone the gradient, and convert it to and from a Unity Gradient. OnChanged is raised when the keys or the mode change from code. All types are in the OctopusGameLab.RichGradient namespace.The package has no dependencies and works in any render pipeline. It was tested in Unity 2022.3, 2023.2, and 6000.0, in the Built-in and Universal Render Pipelines, and in Linear and Gamma. A demo scene is included, and it also works in the High Definition Render Pipeline.Documentation






