Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

AnimationUtility.GetCurveBindings

Switch to Manual
public static function GetCurveBindings(clip: AnimationClip): EditorCurveBinding[];

Parameters

Description

Returns all the float curve bindings currently stored in the clip.

Answers the question: "Which float properties are animated by the clip?".

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 returns only the float curve bindings. See AnimationUtility.GetObjectReferenceCurveBindings for object reference curves.

no example available in JavaScript