UIOBJECT Animation

s (inherits from ParentedObject and ScriptObject, created with ) are used to change presentations or other characteristics of a frame or other region over time.

The Animation object will take over the work of calling code over time, or when it is done, and tracks how close the animation is to completion.

The Animation type doesn't create any visual effects by itself, but it does provide an OnUpdate handler that you can use to support specialized time-sensitive behaviors that aren't provided by the transformations descended from Animations. In addition to tracking the passage of time through an elapsed argument, you can query the animation's progress as a 0-1 fraction to determine how you should set your behavior.

You can also change how the elapsed time corresponds to the progress by changing the smoothing, which creates acceleration or deceleration, or by adding a delay to the beginning or end of the animation.

You can also use an Animation as a timer, by setting the Animation's OnFinished script to trigger a callback and setting the duration to the desired time.

Defined methods

 * - Get the number of seconds it takes for the animation to progress from start to finish.
 * - Gets the amount of time in seconds that the animation has been playing for.
 * - Get the number of seconds the animation delays after finishing.
 * - Gets the order of the animation within its parent group.
 * - Returns the progress of the animation as a unit value [0,1]. Ignores start and end delay.
 * - Gets the Region object that the animation operates on. The region object is this Animation's parent's parent (the AnimationGroup's parent).
 * - Returns a smoothed, [0,1] progress value for the animation.
 * - Gets the smoothing type for the animation.
 * - Get the number of seconds that the animation delays before it starts to progress.
 * - Returns true if the animation is in the middle of a start or end delay.
 * - Returns true if the animation has finished playing.
 * - Returns true if the animation is paused.
 * - Returns true if the animation is playing.
 * - Returns true if the animation is stopped.
 * - Pause the animation.
 * - Play the animation.
 * - Restart the animation.
 * - Set the number of seconds it takes for the animation to progress from start to finish.
 * - Set the number of seconds the animation delays after finishing.
 * - Sets the order that the animation plays within its parent group. Range is [1,100].
 * - Sets the parent for the animation. If the animation was not already a child of the parent, the parent will insert the animation into the proper order amongst its children.
 * - Sets the smooth progress for an animation.
 * - Sets the smoothing type for the animation. Input is [IN,OUT, or IN_OUT].
 * - Set the number of seconds that the animation delays before it starts to progress.
 * - Stop the animation.
 * - Sets the smoothing type for the animation. Input is [IN,OUT, or IN_OUT].
 * - Set the number of seconds that the animation delays before it starts to progress.
 * - Stop the animation.
 * - Stop the animation.
 * - Stop the animation.