可选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
Tweenclass is an easing class. It is used to implement the interpolation of properties of a target object.Zh
Tween类是一个缓动类。使用此类能够实现对目标对象属性的渐变。示例
Blueprintable