[0]spine适配版微信开发者平台报错

是漏了什么操作,在浏览器上运行时没有问题的VM514 WAGame.js:2 TypeError: Cannot read property 'findRegion' of undefined
    at t.AtlasAttachmentLoader.newRegionAttachment (spine-core-3.8.min.js:1)
    at e.readAttachment (spine-core-3.8.min.js:1)
    at e.readSkin (spine-core-3.8.min.js:1)
    at e.readSkeletonData (spine-core-3.8.min.js:1)
    at SpineTemplet_3_x.parseSpineAni (laya.spine.js:656)
    at SpineTemplet_3_x.loop (laya.spine.js:638)
    at TimerHandler.run (laya.core.js:22293)
    at Timer._update (laya.core.js:22144)
    at Stage._updateTimers (laya.core.js:17717)
    at Stage.render (laya.core.js:17679)(env: Windows,mg,1.05.2110152; lib: 2.20.2)
spine适配版bug.png
已邀请:

northTg

赞同来自:

 static init(par: fgui.GComponent) {
this.parent = par;
this.aniPath = "res/sk/pipei.skel";
this.index = -1;
this.startFun();
}
static startFun() {
if (!this.templet)
this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8);
this.templet.loadAni(this.aniPath);
this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete);
this.templet.on(Laya.Event.ERROR, this, this.onError);
}
加载方式用的官方案例,本地跑是没问题的

northTg

赞同来自:

有极个别情况不报错,但是动画不显示

Laya_z

赞同来自:

麻烦提供一下出问题的demo吧,我们测试官网的spine示例是没问题的

要回复问题请先

商务合作
商务合作