Tween
Tweens are probably the most popular know animation type in the game industry. The concept is very basic: tween
comes from "in-between" and it refers to the idea of interpolating a sequence of frames between 0 and 1(0%->100%) which is the animation's timeline.
This interpolation can be manipulated in may ways using the options provided.
1. Options
Name
- The name of the animation. This will be used to identify it in the editor but also will be visible when debugging. [Default: _Empty_]
Update Type
- Which method will create the update of the animation. View More. [Default: Update (Unity's)]
Auto Start
- Weather you want to start this animation automatically or manually. [Default: false(True Start)]
Skip Frames
- How many frames should the animation skip before starting. [Default: 0]
Delay
- How much time(in seconds) should the animation skip before starting. [Default: 0]
Time Scale
- The time scales can be used to speed up or slow down the animation. It's a multiplication factor. [Default: 1]
Time
- The length of the animation in seconds. [Default: 1]
Easing Type
- The type of easing modifier you want applied. Two options: Predefined(View more) or Animation Curve(Unity's). [Default: Predefined]
Easing
/ Easing Curve
- If Easing Type
is set to Predefined then you can pick from a list otherwise you can use the Animation Curve widget to define one.[Default: Linear]
Loop Count
- How many loops should this animation have. [Default: 1]
Loop Type
- Two options: Ping-Pong or Reset. Ping-Pong means it's do one look forward and the next backwards and so on. Reset will do all loops starting from the initial point. [Default: Reset]
2. Events
OnStarting
- A callback triggered before the animation starts.
OnStarted
- A callback triggered after the animation starts.
OnUpdating
- A callback triggered before the animation updates.
OnUpdated
- A callback triggered after the animation updates.
OnLoopCompleting
- A callback triggered before an animation loop completes.
OnLoopCompleted
- A callback triggered after an animation loop completes.
OnCompleting
- A callback triggered before the animation completes.
OnCompleted
- A callback triggered after the animation completes.
3. Motions
A motion is a basic and a unitary animation movement. For example when a cube moved from A to B, we have one motion. If the cube both moves and rotates, we have 2 motions. The idea of motions is that they are atomic and provide one functionality based on the options of the animation. Read more about motions here.