Class ParallelAnimation
A group of animations that run in parallel.
public class ParallelAnimation : IAnimation
- Inheritance
-
ParallelAnimation
- Implements
- Inherited Members
Constructors
ParallelAnimation(params IAnimation[])
Creates a new parallel animation.
public ParallelAnimation(params IAnimation[] animations)
Parameters
animationsIAnimation[]The animations to run in parallel.
ParallelAnimation(IEnumerable<IAnimation>, Action?)
Creates a new parallel animation.
public ParallelAnimation(IEnumerable<IAnimation> animations, Action? onComplete = null)
Parameters
animationsIEnumerable<IAnimation>The animations to run in parallel.
onCompleteActionCallback when all animations complete.
Properties
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
Methods
Cancel()
Called when the animation completes or is cancelled.
public void Cancel()
Update(double)
Updates the animation with the elapsed time since the last frame.
public void Update(double deltaTime)
Parameters
deltaTimedoubleTime elapsed since last update in seconds.