fillRange也可以做动画
fillRange也可以做动画,天啊,太方便了。我用了这么多年,居然不知道。
let ftofill = (5 - isex) / 5
let spriteComp = secNode.getComponent(cc.Sprite);
// 使用Tween创建动画
cc.tween(spriteComp)
.to(1, { fillRange: ftofill })
.start();secNode是一个Sprite,里面的type:FILLED,fill Center都改为0.5,scallY:-1,rotation:90这样是顺时针跑。
太酷了