Store a collection of Keyframes that can be evaluated over time.
| Property | Description |
|---|---|
| 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) |
| Constructor | Description |
|---|---|
| AnimationCurve | Creates an animation curve from an arbitrary number of keyframes. |
| Method | Description |
|---|---|
| AddKey | Add a new key to the curve. |
| ClearKeys | Erases all KeyFrame from this instance of the AnimationCurve. |
| CopyFrom | Copies the keys and properties of the specified AnimationCurve object into this instance of the AnimationCurve class. |
| Evaluate | Evaluate the curve at time. |
| GetHashCode | A HashCode for the animation curve, computed using all individual Keyframe. |
| MoveKey | Moves the key at index to key.time and key.value. |
| RemoveKey | Removes a key. |
| SmoothTangents | Smooth the in and out tangents of the keyframe at index. |
| Method | Description |
|---|---|
| Constant | Creates a constant "curve" starting at timeStart, ending at timeEnd, and set to 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. |