Version: 2017.3
public static void SetEditorCurve (AnimationClip clip, EditorCurveBinding binding, AnimationCurve curve);

Parameters

clip @param clip Анимационный клип, к которому будет добавлена кривая.
binding @param binding Скрепления, которые определяют путь и свойство кривой.
curve The curve to add. Setting this to null will remove the curve.

Description

Добавляет кривую редактора к данному клипу.

В редакторе AnimationClip'ы позволяют вам указать особые кривые редактора, которые не могут получить сочетание, таким образом, он позволяет пользователю редактировать кривые более интуитивно понятным способом.

Unity has two types of animation: Float and object reference. Float curve is a classic curve that animates float property over time. Object reference "curve" is a construct that animates object reference property over time.

This method is used for float curves. For object reference curves, see: AnimationUtility.SetObjectReferenceCurve.