# SmoothTangents(int, float)

> Smooth the in and out tangents of the keyframe at index.

## Definition

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

```csharp
public void SmoothTangents(int index, float weight)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the keyframe to be smoothed.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The smoothing weight to apply to the keyframe's tangents.

### Remarks

A weight of 0 evens out tangents.
