# Fade(float, float)

> Returns a value between from and to depending on the current value of the bools animation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AnimatedValues](/engine/6000.0/script-reference/unityeditor/animatedvalues.md)
* **Assembly:** UnityEditor

```csharp
public float Fade(float from, float to)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Value to lerp from.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Value to lerp to.

### Returns

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