Gradient.Evaluate

Declaration

public Color Evaluate(float time);

Parameters

time Time of the evaluation (0 - 1).

Description

Calculate color at a given time.

Gradient color and alpha keys are blended and interpolated depending on the gradient mode.

Unity clamps the colors and alpha if you use a value for time that's smaller than 0 or larger than 1.

Additional resources: mode, GradientMode, SetKeys.


Did you find this page useful? Please give it a rating: