AnimationCurve
Class
The animation curve. Lets you add keyframes and evaluate the curve at a given time.
Variables
| keys |
All keys defined in the animation curve. This lets you clear, add or remove any keys from the array.
|
| this [int index] |
Retrieves the key at index (Read Only)
|
| length |
The number of keys in the curve (Read Only)
|
| preWrapMode |
The behaviour of the animation before the first keyframe
|
| postWrapMode |
The behaviour of the animation after the last keyframe
|
Constructors
| AnimationCurve |
Creates an animation curve from arbitrary number of keyframes.
|
Functions
| Evaluate |
The value of the animation curve at time.
|
| AddKey |
Add a new key to the curve.
|
| 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.
|
Class Functions
| Linear |
A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd
|
| EaseInOut |
An ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.
|
|