GetDiscreteCurve(AnimationClip, EditorCurveBinding)
Retrieves the discrete curve that the binding points to.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static DiscreteKeyframe[] GetDiscreteCurve(AnimationClip clip, EditorCurveBinding binding)
Parameters
Animation clip to query.
The binding that defines the path and the properties of the value.
Returns
Type | Description |
|---|---|
| DiscreteKeyframe[] | Returns an array of keyframes. |
Remarks
Unlike float curves, discrete curves do not have additional metadata. For this reason, an array of keyframes is returned instead of a curve object.
See also: AnimationUtility.GetEditorCurve.