🎬 WidgetAnimation

πŸŽ’ Example

local oText = WGUI.Create(TextBlock, WGUI.Create(CanvasPanel))
oText:SetText("Animation")

oText:CreateAnimationObject(
    oText.GetPos, oText.SetPos,
    Vector2D(100, 0),
    1,
    nil,
    true
)

πŸ›  Constructor

local MyAnimation = Widget:CreateAnimationObject(
    GetterFunction,
    SetterFunction,
    EndValue,
    Duration,
    OnCompleted?,
    AutoDestroy?,
    EasingFunction?
)
TypeNameDefault

GetterFunction

SetterFunction

EndValue

Duration

OnCompleted?

AutoDestroy?

false

EasingFunction?

🦠 Functions

PlayForward

Plays the animation relative to its current state forward.

MyAnimation:PlayForward()

Reverse

Plays the animation in the reverse direction.

MyAnimation:PlayReverse()

Stop

MyAnimation:Stop()

Destroy

MyAnimation:Destroy()

IsPlaying

β€” Returns boolean.

local ret = MyAnimation:IsPlaying()

Last updated