this.node.getComponent(Sprite).fillType = Sprite.FillType.RADIAL;
this.node.getComponent(Sprite).fillStart = 0.5;
代码无效,运行之后没有效果。
this.node.getComponent(Sprite).fillType = Sprite.FillType.RADIAL;
this.node.getComponent(Sprite).fillStart = 0.5;
代码无效,运行之后没有效果。
我也是遇到这个问题了
这都四年前的贴了,建议开个新帖,贴上版本,方便的话再传个demo
Demo暂时不方便,但是代码可以 this.schedule(() => {
this.cd.fillRange -= 0.1;
error(this.cd.fillRange)
if (this.cd.fillRange <= 0){
this.cd.fillRange = 0;
//this.setIsCD(false);
}
}, 1, 9, 0);
我选的是扇形填充,结果动态设置渲染根本不是扇形的,要么0,要么1.别的值不起作用。我用多个3.8.3 版本
好的,更改看了,是有用的,只不过我这边表现不明显,所以误以为没有