Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Evaluate

Manually query the curve to calculate values based on what mode it is in.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule

Evaluate(float)

Manually query the curve to calculate values based on what mode it is in.
public float Evaluate(float time)

Parameters

time

Normalized time (in the range 0 - 1, where 1 represents 100%) at which to evaluate the curve. This is valid when ParticleSystem.MinMaxCurve.mode is set to ParticleSystemCurveMode.Curve or ParticleSystemCurveMode.TwoCurves.

Returns

Type

Description

floatCalculated curve/constant value.

Remarks

This automatically clamps the time and lerpFactor properties between 0 and 1.

Evaluate(float, float)

Manually query the curve to calculate values based on what mode it is in.
public float Evaluate(float time, float lerpFactor)

Parameters

time

Normalized time (in the range 0 - 1, where 1 represents 100%) at which to evaluate the curve. This is valid when ParticleSystem.MinMaxCurve.mode is set to ParticleSystemCurveMode.Curve or ParticleSystemCurveMode.TwoCurves.

lerpFactor

Blend between the two curves/constants (Valid when ParticleSystem.MinMaxCurve.mode is set to ParticleSystemCurveMode.TwoConstants or ParticleSystemCurveMode.TwoCurves).

Returns

Type

Description

floatCalculated curve/constant value.

Remarks

This automatically clamps the time and lerpFactor properties between 0 and 1.