# Linear(float, float, float, float)

> A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd.

## Definition

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

```csharp
public static AnimationCurve Linear(float timeStart, float valueStart, float timeEnd, float valueEnd)
```

### Parameters

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

### Returns

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