可选
target: anyThe target object of the Tween. If it is empty, the target object pass in create method will be used.
可选
lifecycleOwner: anyThe lifecycle object, when destroyed, the tween will automatically stop. In general, if the target object of the task has a destroyed property, this property does not need to be set. If the target object of the task does not have a destroyed property, this property can be set.
The Tween object.
The easing function, or the name of the easing function.
动态参数
...args: any[]Extra parameters for the easing function.
The Tween object.
The Tween object.
The interpolation function.
动态参数
...args: TExtra parameters for the interpolation function.
The Tween object.
The start callback.
可选
callbackThis: anyThe start callback execution context.
The Tween object.
The update callback.
可选
callbackThis: anyThe update callback execution context.
The Tween object.
可选
target: anyThe target object of the Tween. If it is empty, the target object pass in chain or create method will be used.
可选
lifecycleOwner: anyThe lifecycle object, when destroyed, the tween will automatically stop. In general, if the target object of the task has a destroyed property, this property does not need to be set. If the target object of the task does not have a destroyed property, this property can be set.
The Tween object.
The complete callback.
可选
callbackThis: anyThe complete callback execution context.
The Tween object.
Set a custom complete callback for the current task. The complete callback is executed when the task finishes. Note that if there are parallel tasks, the complete callback will be called when the current task ends, not when all parallel tasks end. If the task is killed before it ends, and the parameter complete is false, the complete callback will not be called.
静态
clear静态
clear静态
create可选
target: anyThe target object of the Tween. It can be empty.
可选
lifecycleOwner: anyThe lifecycle object, when destroyed, the tween will automatically stop. In general, if the target object of the task has a destroyed property, this property does not need to be set. If the target object of the task does not have a destroyed property, this property can be set.
A Tween object.
静态
fromThe target object whose properties will be tweened.
The list of properties to change, e.g., {x:100, y:20, ease:Ease.backOut, complete:Handler.create(this,onComplete), update:new Handler(this,onUpdate)}.
The time taken for the tween in milliseconds.
可选
ease: EaseFunctionThe type of easing, defaults to linear motion.
可选
complete: HandlerThe callback function when the tween completes.
可选
delay: numberThe delay before the tween starts.
可选
coverBefore: booleanWhether to override the previous tween.
Returns the Tween object.
静态
get静态
get静态
is静态
killThe tween object to clear.
静态
kill静态
seperate可选
channels: numberThe number of channels to interpolate. For example, if it is RGB, this value is 3. If it is RGBA, this value is 4. Default is 3.
This is an interpolator that separates a numeric color value into each channel for interpolation. For example, from 0x000000 to 0xffffff tween, by default, it will increase directly from 0x000000 to 0xffffff, instead of R/G/B increasing from 0x00 to 0xff respectively. Using this interpolator, R/G/B can increase from 0x00 to 0xff respectively.
静态
shake静态
toThe target object whose properties will be tweened.
The list of properties to change, e.g., {x:100, y:20, ease:Ease.backOut, complete:Handler.create(this,onComplete), update:new Handler(this,onUpdate)}.
The time taken for the tween in milliseconds.
可选
ease: EaseFunctionThe type of easing, defaults to linear motion.
可选
complete: HandlerThe callback function when the tween completes.
可选
delay: numberThe delay before the tween starts.
可选
coverBefore: booleanWhether to override the previous tween.
Returns the Tween object.
静态
use
En
The
Tween
class is an easing class. It is used to implement the interpolation of properties of a target object.Zh
Tween
类是一个缓动类。使用此类能够实现对目标对象属性的渐变。示例
Blueprintable