Skip to content

KeyFrame

The KeyFrame class represents a single keyframe in an animation curve.

成员变量

KeyFrame.time : number
The time of the keyframe.
KeyFrame.value : number
The value of the curve at the keyframe.
KeyFrame.inTangent : number
In Tangent, which affects the slope of the curve from the previous keyframe to this keyframe.
KeyFrame.outTangent : number
Out Tangent, affects the slope of the curve from this keyframe to the next keyframe.

成员方法

KeyFrame.toString ( ) : string
Returns the type name of the component.
KeyFrame.EqualsTo ( other : KeyFrame ) : boolean
Check if the current keyframe is equal to the target keyframe.

静态方法

KeyFrame.EqualsTo ( lhs : KeyFrame , rhs : KeyFrame ) : boolean
Check if two keyframes are equal.