Set slug type||doc136249

September 20, 2022

Format

operater:setEase(easeType)

Describe

The buffer setting handle returned after setting the UI buffer can achieve different animation effects by setting different buffer types.


Parameter

Variable name Type Describe
easeType string Slug type


Return value

Type Describe
operater Jog setting handle


Code example

The picture control moves to the jog animation of absolute coordinates x = 100 and y = 100 in two seconds
Set the animation jog type to elastic

local window = UI:openWindow("testUI")
local img = window.Image
local operater = UI.doTrans(img, {x = {0, 100}, y = {0, 100}}, 2)
operater:setEase("inOutBounce")