Unity - Scripting API: AnimationCurve
class in UnityEngine
/
Implemented in:UnityEngine.CoreModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
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
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. |