Skip to main content

TweenMethod

Namespace: MonineEngine.Mathematics.Tweening

Defines how a Tween<T> behaves while executing.

public enum TweenMethod

Inheritance ObjectValueTypeEnumTweenMethod
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
OneShot0Plays the Tween<T> once, and deletes it upon completion.
Persist1Plays the Tween<T> once, and keeps it attached to the container. This can be used to keep a reference of the Tween<T> after completion, and call Start() anytime.
Looping2Plays the Tween<T> until stopped, going back to the start and replaying upon completion.
PingPong3Identical to TweenMethod.Looping, but every second execution is in reverse direction.
BackwardOneShot4Identical to TweenMethod.OneShot, except it executes the tween backwards.
BackwardPersist5Identical to TweenMethod.Persist, except it executes the tween backwards.