AnimationHandleWithEventsExtensions.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, IAnimationWithEvents
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<U>(AnimationHandle, U, float, int)
Runs the provided animation
simultaneously with the animation represented by this handle
Declaration
public static AnimationHandle Include<U>(this AnimationHandle handle, U animation, float durationInSeconds, int iterations = 1)
where U : struct, IAnimationWithEvents
Parameters
Type | Name | Description |
---|---|---|
AnimationHandle | handle | The handle of the animation to combine |
U | 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 |
---|---|
U |