# Constant(float, float, float)

> Creates a constant "curve" starting at timeStart, ending at timeEnd, and set to the value value.

## Definition

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

```csharp
public static AnimationCurve Constant(float timeStart, float timeEnd, float value)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The start time for the constant curve.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The end time for the constant curve.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The value for the constant curve.

### Returns

| Type                                                                            | Description                                           |
| ------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [AnimationCurve](/engine/6000.3/script-reference/unityengine/animationcurve.md) | The constant curve created from the specified values. |
