AnimationHandleExtensions.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, IAnimation
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 |
float | durationInSeconds | The duration, in seconds, to run this new |
int | iterations | The number of times to run |
Returns
Type | Description |
---|---|
AnimationHandle | An AnimationHandle representing this new animation chain |
Type Parameters
Name | Description |
---|---|
T | The type of the new |