OnCompleted||doc136711

September 20, 2022

Format

local event = Tween:GetEvent("OnCompleted")

Describe

The event is triggered when tween play done.

Callback function parameters

type name introduce
Tween tween Current tween

Code example

-- The steps to create a tween are omitted
-- local tween = ...

local event = tween:GetEvent("OnCompleted")
event:Bind(function()
    print("tween completed! ")
end)