Class: KeyframeAnimationUtility

Methods

Name Description
AddKeyframe(Int32) Adds a new keyframe.
ClearKeyframes() Clears all keyframes.
ExportAnimationVideo() Export the Animation as a Video file.
GetSubframeCount(Int32) Gets the subframe count of the specified keyframe.
GetTotalTime() Gets the total time (in seconds).
InsertKeyframe(Int32, Int32) Inserts a new keyframe at the index.
LoadAnimation() Loads keyframes from a keyframe animation XML file.
ModifySubframeCount(Int32, Int32) Modifies the subframe count of the keyframe.
ModifyTotalTime(Double) Modifies the Total Time of the Animation.
NextFrame(Boolean) Sets the player to the next frame.
Pause() Pauses the animation at the current frame.
Play() Plays the animation defined by the current keyframes.
PreviousFrame(Boolean) Sets the player to the previous frame.
RemoveKeyframe(Int32) Removes the keyframe and its associated subframes.
ReplaceKeyframe(Int32, Int32) Replace a keyframe at the index.
SaveAnimation() Saves the keyframes to a reloadable XML file.
SetCurrentFrame(Int32, Int32) Sets the player's current frame.
Stop() Stops the animation and returns the player to the first frame.

Properties

Name Description
CurrentFrame Gets the player's current frame in the form (keyframeIndex, subframeIndex).
KeyframeCount The number of keyframes in the player.
KeyframeList Gets a list of the keyframes' information in the form of [(subframeCount),(subframeCount), ..., ...].
Loop If Loop is true, the player will loop the animation.