Add an action which calculate with relative value.
缓动时间,单位为秒
缓动的属性列表
Add an callback action.
Clone a tween.
Add an delay action.
Add an hide action, only for node target.
Add an removeSelf action, only for node target.
Directly set target properties.
Add an show action, only for node target.
Start this tween.
Stop this tween.
Sets tween tag
Sets tween target.
Add an action which calculate with absolute value.
缓动时间,单位为秒
缓动的属性列表
Integrate all previous actions to an action.
Stop all tweens
Stop all tweens by tag
Stop all tweens by target
Generated using TypeDoc
Tween provide a simple and flexible way to action, It's transplanted from cocos creator。
tween(this.node) .to(1, {scale: new Vec3(2, 2, 2), position: new Vec3(5, 5, 5)}) .call(() => { console.log('This is a callback'); }) .by(1, {scale: new Vec3(-1, -1, -1), position: new Vec3(-5, -5, -5)}, {easing: 'sineOutIn'}) .start()