请问下:资源加载总数统计不对,如何解决?

无论是2.4之前的cc.loader.load或者现在的cc.resources.load,资源总数会变化。
资源总数totalCount的变化,资源多的时候,会导致进度条后退的。
后来做死办法,程序判断,per变化只能变化大,比之前小的数值就不处理了。
var asd = function (completedCount,totalCount,item) {
console.log(“completedCount:” + completedCount + “,totalCount:” + totalCount );
var per = completedCount / totalCount;
this.node.getChildByName(‘progress_bar’).getComponent(cc.ProgressBar).progress = per;
}.bind(this);
cc.resources.load(res,asd,function(err,assets){
});

image

你解决了吗

只能和他一样

上面不是说了嘛,用程序判断