-
Creator 版本:3.6.0
-
目标平台: 网页
let child = this.node; let randY = 5 + 10 * Math.random(); let randX = 10 * Math.random(); let dy = 0.2 * Math.random(); let tw = tween(child) .by(1, { position: v3(randX, randY, 0) }, { easing: 'quadInOut' }) .by(1, { position: v3(-randX, -randY, 0) }, { easing: 'quadInOut' }); tween(child) .delay(dy) .call(() => { tween(child).repeatForever(tw).start() }) .start();
Tween.stopAllByTarget(child);无效了,这个demo很简单
简单测试正常可以停止,你是什么情况下调用的 stopAllByTarget
发现是我自己的问题,可以结束帖子了