Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SmoothTangents(int, float)

Smooth the in and out tangents of the keyframe at index.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void SmoothTangents(int index, float weight)

Parameters

index

The index of the keyframe to be smoothed.

weight

The smoothing weight to apply to the keyframe's tangents.

Remarks

A weight of 0 evens out tangents.