Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

AnimationUtility.GetDiscreteCurveBindings

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static EditorCurveBinding[] GetDiscreteCurveBindings(AnimationClip clip);

Parameters

Parameter Description
clip Animation clip to query.

Returns

EditorCurveBinding[] Returns an array of bindings.

Description

Retrieves the discrete curve bindings stored in the animation clip.

Use this method to find which discrete integer properties are animatable.

Unity has three types of animation curves: float curve, discrete curve and object reference curve. A float curve is a classic curve that animates a float property over time. A discrete curve is a collection of integer keyframes that animates a discrete integer property over time. An object reference curve is a construct that animates an object reference property over time.

This method only retrieves discrete curve bindings. See AnimationUtility.GetCurveBindings for float curves. See AnimationUtility.GetObjectReferenceBindings for object reference curves.