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 |
T | animation | The new animation to combine with the animation tied to |
Returns
Type | Description |
---|---|
AnimationHandle | An AnimationHandle representing this new animation combination |
Type Parameters
Name | Description |
---|---|
T | The type of the new |
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 |
T | animation | The new animation to combine with the 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 combination |
Type Parameters
Name | Description |
---|---|
T | The type of the new |