FREE TRIAL

|

☀
☾

IAnimationExtensions.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, IAnimation
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:

ChainNova.AnimationHandleExtensions.Chain``1(Nova.AnimationHandle,``0,float,int)
IncludeInclude<T>(AnimationHandle, T)
PausePause(AnimationHandle)
ResumeResume(AnimationHandle)
CancelCancel(AnimationHandle)
CompleteComplete(AnimationHandle)
Type Parameters
Name Description
T

The type of the animation struct

Exceptions
Type Condition
System.ArgumentException

Throws when durationInSeconds is invalid.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC