# MinMaxCurve

> A single constant value for the entire curve.

## Definition

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

## MinMaxCurve(float)

A single constant value for the entire curve.

```csharp
public MinMaxCurve(float constant)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Constant value.

## MinMaxCurve(float, AnimationCurve)

Use one curve when evaluating numbers along this Min-Max curve.

```csharp
public MinMaxCurve(float multiplier, AnimationCurve curve)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): A multiplier to apply to the curve.**** (\[AnimationCurve]\(/engine/6000.7/script-reference/unityengine/animationcurve)): A single curve to evaluate against.

## MinMaxCurve(float, AnimationCurve, AnimationCurve)

Randomly select values based on the interval between the minimum and maximum curves.

```csharp
public MinMaxCurve(float multiplier, AnimationCurve min, AnimationCurve max)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): A multiplier to apply to the curves.**** (\[AnimationCurve]\(/engine/6000.7/script-reference/unityengine/animationcurve)): The curve describing the minimum values to be evaluated.**** (\[AnimationCurve]\(/engine/6000.7/script-reference/unityengine/animationcurve)): The curve describing the maximum values to be evaluated.

## MinMaxCurve(float, float)

Randomly select values based on the interval between the minimum and maximum constants.

```csharp
public MinMaxCurve(float min, float max)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The constant describing the minimum values to be evaluated.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The constant describing the maximum values to be evaluated.
