[LayaAir 2.0]laya.spine.js问题以及spine.core.js问题
* 使用过程中发现的两个低级错误
laya.spine.js:
SpineTemplet_3_x 和SpineTemplet_4_0 这两个类的loop方法里有一些问题,assetManager的错误检测应为放在完成检测之前吧,这样会导致真的发生了加载错误,因为parseSpineAni会报错,导致ERROR事件也抛不出去。
==========================================================================
spine-core-3.7.js问题:
代理里有语法错误,state !== status
laya.spine.js:
SpineTemplet_3_x 和SpineTemplet_4_0 这两个类的loop方法里有一些问题,assetManager的错误检测应为放在完成检测之前吧,这样会导致真的发生了加载错误,因为parseSpineAni会报错,导致ERROR事件也抛不出去。
private loop() {
if (this.assetManager.isLoadingComplete()) {
this.parseSpineAni();
return;
}
if (this.assetManager.hasErrors()) {
this.event(Event.ERROR, "load failed:" + this.assetManager.getErrors());
return;
}
Laya.timer.frameOnce(1, this, this.loop);
}
==========================================================================
spine-core-3.7.js问题:
代理里有语法错误,state !== status
}, (state, responseText) => {
this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`;
if (error)
error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`);
this.toLoad--;
this.loaded++;
});
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
kylin9718
赞同来自:
第一点确认确实为bug,在特定情况下会有问题,我们会在下个版本进行修复。
第二点非bug,spine-core.js是spine官方的库,下载部分的代码已经替换为Laya引擎的方案,不再使用spine本身的方法,出现问题的地方并不会执行到,相关问题我们也会和spine官方反馈。
第七天堂
赞同来自: