Version: 5.4
public Color Evaluate (float time);
public Color Evaluate (float time, float lerpFactor);

Parameters

time Percentage along the gradient (Valid when ParticleSystem.MinMaxGradient.mode is set to ParticleSystemGradientMode.Gradient or ParticleSystemGradientMode.TwoGradients).
lerpFactor Blend between the 2 gradients/colors (Valid when ParticleSystem.MinMaxGradient.mode is set to ParticleSystemGradientMode.TwoColors or ParticleSystemGradientMode.TwoGradients).

Returns

Color Calculated gradient/color value.

Description

Manually query the gradient to calculate colors based on what mode it is in.

The time and lerpFactor parameters will be automatically clamped into the 0-1 range.