# EaseInOut(float, float, float, float)

> Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.

## Definition

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

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

### Parameters

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

### Returns

| Type                                                                            | Description                                                    |
| ------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [AnimationCurve](/engine/6000.3/script-reference/unityengine/animationcurve.md) | The ease-in and out curve generated from the specified values. |
