Base class for all animations.
More...
|
| void | Update (float time) |
| | Update the animation with a new frame.- Parameters
-
| deltaSeconds | The amount of time, in seconds, that has passed since the last animation frame. |
|
| |
| IAnimationHandle | Start () |
| | <inhertdoc >
|
| |
| void | Cancel () |
| | Cancel the animation.
|
| |
| IAnimationHandle | WhileActive (IAnimationUpdateAction updateAction) |
| | Adds an action to be executed each time the animation updates.- Parameters
-
- Returns
- The animation.
|
| |
| IAnimationHandle | Then (IAnimation nextAnimation) |
| | Adds the specified animation to the list of animations to start after this one has completed.- Parameters
-
| nextAnimation | Any animation. |
- Returns
- This animation.
|
| |
|
| IEnumerable< IAnimation > | NextAnimations [get] |
| | Gets a collection of animations that will be started after this one finishes.
|
| |
| bool | IsCompleted [get] |
| | Gets a value indicating whether an animation has completed.
|
| |
| bool | IsActive [get] |
| | Gets a value indicating whhether the animation is active.
|
| |
| bool | IsCancelled [get] |
| | Gets a value indicating whether an animation has been cancelled.
|
| |
Base class for all animations.
- See also
- IAnimation, Animation<TValue>, IAnimationHandle
◆ Animation()
Creates a new instance of the Animation class.
- Parameters
-
| curve | The curve function to use for the animation. |
| duration | The duration, in seconds, of the animation. |
◆ Cancel()
◆ OnUpdate()
| void OnUpdate |
( |
float | transitionPercentage | ) |
|
|
abstractprotected |
Method that's called each time the animation is updated.
- Parameters
-
| transitionPercentage | A value between 0.0 and 1.0 representing the animation's progress. |
◆ Start()
◆ Then()
Adds the specified animation to the list of animations to start after this one has completed.
- Parameters
-
| nextAnimation | Any animation. |
- Returns
- This animation.
Implements IAnimationHandle.
◆ Update()
| void Update |
( |
float | time | ) |
|
|
inline |
Update the animation with a new frame.
- Parameters
-
| deltaSeconds | The amount of time, in seconds, that has passed since the last animation frame. |
Implements IAnimation.
◆ WhileActive()
Adds an action to be executed each time the animation updates.
- Parameters
-
- Returns
- The animation.
Implements IAnimationHandle.
◆ IsActive
Gets a value indicating whhether the animation is active.
Implements IAnimationHandle.
◆ IsCancelled
Gets a value indicating whether an animation has been cancelled.
Implements IAnimationHandle.
◆ IsCompleted
Gets a value indicating whether an animation has completed.
Implements IAnimationHandle.
◆ NextAnimations
Gets a collection of animations that will be started after this one finishes.
Implements IAnimation.
The documentation for this class was generated from the following file:
- /home/ritchie/Projects/toolbox/src/Ritchie.Toolbox/Animation/Animation.cs