Skip to content

Curve

A curve is a sequence of numerical values that changes over time, typically used to control the variation of property values or effects in animations.

构造方法

Curve.new ( )
Create an empty curve object.
Curve.new ( handle : Curve )
Create a curve object based on the given curve object.

成员变量

Curve.frameCount : number
The count of keyframes.

成员方法

Curve.get ( index : number ) : KeyFrame
Returns the keyframe at the specified index.
Curve.set ( index : number , val : KeyFrame ) : void
Set the value of the specified keyframe at the given index.
Curve.AddFrame ( frame : KeyFrame ) : void
Add a keyframe to the curve.
Curve.EnsureOrder ( ) : void
Ensure the order of the curve is correct.
Curve.RemoveFrame ( index : number ) : void
Removes the keyframe at the specified index from the curve.
Curve.Clear ( ) : void
Clears all keyframes on a curve.
Curve.Evaluate ( time : number ) : number
Get the value at a specified time point on the curve.
Curve.toString ( ) : string
Returns the type alias of the component.