# Evaluate

> Manually query the curve to calculate values based on what mode it is in.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

## Evaluate(float)

Manually query the curve to calculate values based on what mode it is in.

```csharp
public float Evaluate(float time)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Normalized time (in the range 0 - 1, where 1 represents 100%) at which to evaluate the curve. This is valid when [ParticleSystem.MinMaxCurve.mode](/engine/6000.5/script-reference/unityengine/particlesystem/minmaxcurve/mode.md) is set to [ParticleSystemCurveMode.Curve](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/curve.md) or [ParticleSystemCurveMode.TwoCurves](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/twocurves.md).

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Calculated 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.

```csharp
public float Evaluate(float time, float lerpFactor)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Normalized time (in the range 0 - 1, where 1 represents 100%) at which to evaluate the curve. This is valid when [ParticleSystem.MinMaxCurve.mode](/engine/6000.5/script-reference/unityengine/particlesystem/minmaxcurve/mode.md) is set to [ParticleSystemCurveMode.Curve](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/curve.md) or [ParticleSystemCurveMode.TwoCurves](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/twocurves.md).**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Blend between the two curves/constants (Valid when [ParticleSystem.MinMaxCurve.mode](/engine/6000.5/script-reference/unityengine/particlesystem/minmaxcurve/mode.md) is set to [ParticleSystemCurveMode.TwoConstants](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/twoconstants.md) or [ParticleSystemCurveMode.TwoCurves](/engine/6000.5/script-reference/unityengine/particlesystemcurvemode/twocurves.md)).

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Calculated curve/constant value. |

### Remarks

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