AnimationCurve

A collection of curves form an AnimationClip.

Variables
keys

All keys defined in the animation curve.

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

Evaluate the 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.