[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)
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)
没有找到相关结果
已邀请:
要回复问题请先登录

3 个回复
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
赞同来自: