FREE TRIAL

|

☀
☾
interface

IAnimation

A common interface to implement for simple animation structs which just need a call to Update(Single).

Methods

Update

Called once per frame while the animation is running and provides a percentDone, [0, 1] where 1 == 100%, for the current animation iteration.

Extension Methods

Loop

Queue an animation to loop iterations times for durationInSeconds per iteration, where iterations == -1 indicates "until canceled", starting at the end of the current frame.

Run

Queue an animation to run for durationInSeconds starting at the end of the current frame.

See Also

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