Select your preferred scripting language. All code snippets will be displayed in this language.
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.Close
For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
A collection of curves form an AnimationClip.
|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)|
|AnimationCurve||Creates an animation curve from arbitrary number of keyframes.|
|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.|