LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AnimationCurve.SmoothTangents

public void SmoothTangents(int index, float weight);

Parameters

indexThe index of the keyframe to be smoothed.
weightThe smoothing weight to apply to the keyframe's tangents.

Description

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

A weight of 0 evens out tangents.