[0]SpineSkeleton3.8.loadAni如果加载失败一定会引发LAYA底层报错

使用的Spine3.8,因为是百分百能重现,所以就没有提供DEMO了。使用SpineSkeletonn3.8.loadAni如果加载失败时,laya.spine.js的SpineTemplet.loop会引发报错,,底层代码:
    loop() {
            if (this.assetManager.isLoadingComplete()) { //这里应该先判断加载是否成功,否则失败了也会满足条件
                this.parseSpineAni();//在处理失败资源会报错
                return;
            }
            if (this.assetManager.hasErrors()) {
                this.event(Laya.Event.ERROR, "load failed:" + this.assetManager.getErrors());
                return;
            }
            Laya.Laya.timer.frameOnce(1, this, this.loop);
        }
 
16D0DF42-03ED-4114-BA40-535DF3A827FA.png
已邀请:

Yan

赞同来自:

感谢反馈,我们先查验一下这个问题,如果确实存在,后续修复。

要回复问题请先

商务合作
商务合作