Scripting API

Gradient

class in UnityEngine · UnityEngine.CoreModule

9 of 16 of Unity's membersUnity's documentation
In Tassix

Colors and alphas keyed over 0-1. Blend interpolates between keys (in the colors' own values); Fixed takes the first key at or after the time.

Properties 4

GradientAlphaKey[] alphaKeys { get; set; }
GradientColorKey[] colorKeys { get; set; }
ColorSpace colorSpace { get; set; }
GradientMode mode { get; set; }

Methods 4

bool Equals(Gradient? other)
bool Equals(object? obj)
Color Evaluate(float time)
int GetHashCode()
void SetKeys(GradientColorKey[] colorKeys, GradientAlphaKey[] alphaKeys)

Not in Tassix yet 7

Finalize GetAlphaKeys GetColorKeys SetAlphaKeys SetColorKeys alphaKeyCount colorKeyCount

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.