Description 描述
Store a collection of Keyframes that can be evaluated over time.
Properties 属性
| keys | All keys defined in the animation curve. | ||
| length | The number of keys in the curve. (Read Only) | ||
| postWrapMode | The behaviour of the animation after the last keyframe. | ||
| preWrapMode | The behaviour of the animation before the first keyframe. | ||
| this[int] | Retrieves the key at index. (Read Only) |
Constructors
| AnimationCurve | Creates an animation curve from an arbitrary number of keyframes. |
Public Methods 公共方法
| AddKey | Add a new key to the curve. | ||
| Evaluate | Evaluate the curve at time. | ||
| MoveKey | Removes the keyframe at index and inserts key. | ||
| RemoveKey | Removes a key. | ||
| SmoothTangents | Smooth the in and out tangents of the keyframe at index. |
Static Methods 静态方法
| Constant | Creates a constant "curve" starting at timeStart, ending at timeEnd and with the value value. | ||
| EaseInOut | Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd. | ||
| Linear | A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd. |