文档

Unity Engine

Unity Engine

GetDiscreteCurveBindings(AnimationClip)

Retrieves the discrete curve bindings stored in the animation clip.
阅读时间1 分钟最后更新于 24 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static EditorCurveBinding[] GetDiscreteCurveBindings(AnimationClip clip)

Parameters

Animation clip to query.

Returns

Type

Description

EditorCurveBinding[]Returns an array of bindings.

Remarks

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 GetObjectReferenceBindings for object reference curves.