FREE TRIAL

|

☀
☾

AnimationHandleExtensions.Include

Include<T>(AnimationHandle, T)

Runs the provided animation simultaneously with the animation represented by this handle. The new animation will inherit duration and iterations from the already scheduled animation.

Declaration
public static AnimationHandle Include<T>(this AnimationHandle handle, T animation)
    where T : struct, IAnimation
Parameters
Type Name Description
AnimationHandle handle

The handle of the animation to combine animation with

T animation

The new animation to combine with the animation tied to handle

Returns
Type Description
AnimationHandle

An AnimationHandle representing this new animation combination

Type Parameters
Name Description
T

The type of the new animation struct

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

Runs the provided animation simultaneously with the animation represented by this handle

Declaration
public static AnimationHandle Include<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 combine animation with

T animation

The new animation to combine with the animation tied to handle

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 combination

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