FREE TRIAL

|

☀
☾

AnimationHandleWithEventsExtensions.Chain

Chain<T>(AnimationHandle, T, float, int)

Runs the provided animation after the animation (or animation group) represented by this handle has completed

Declaration
public static AnimationHandle Chain<T>(this AnimationHandle handle, T animation, float durationInSeconds, int iterations = 1)
    where T : struct, IAnimationWithEvents
Parameters
Type Name Description
AnimationHandle handle

The handle of the animation to run after

T animation

The new animation to run when the previous animation, tied to handle, completes

float durationInSeconds

The duration, in seconds, to run this new animation

int iterations

The number of times to run animation before removing it from the animation queue

Returns
Type Description
AnimationHandle

An AnimationHandle representing this new animation chain

Type Parameters
Name Description
T

The type of the new animation struct

See Also
Run<T>(T, Single)
Loop<T>(T, Single, Int32)
Run<T>(T, Single)
Loop<T>(T, Single, Int32)
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC