GetDiscreteCurve(AnimationClip, EditorCurveBinding)
Retrieves the discrete curve that the binding points to.
阅读时间1 分钟最后更新于 24 天前
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.