IAnimationWithEventsExtensions.Run
Run<T>(T, float)
Queue an animation to run for durationInSeconds
starting at the end of the current frame.
Declaration
public static AnimationHandle Run<T>(this T animation, float durationInSeconds)
where T : struct, IAnimationWithEvents
Parameters
Type | Name | Description |
---|---|---|
T | animation | The IAnimation struct configured to perform the animation via Nova.IAnimation.Update(float) |
float | durationInSeconds | The duration, in seconds, of the animation |
Returns
Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AnimationHandle | An AnimationHandle, which can be used to:
|
Type Parameters
Name | Description |
---|---|
T | The type of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Throws when |