[LayaAir3]物理库使用wsam版本,微信小游戏启动报错

TypeError: window.Box2D is not a function
    at physics2DwasmFactory.initialize (physics2DwasmFactory.ts:262)
    at Physics2D.enable (Physics2D.ts:117)
    at r.initRender2D (Laya.ts:218)
    at Laya.ts:176
 
并且libs/min目录下,Box2D.wasm文件也没有附加文件MD5
已邀请:

layaAir小孟

赞同来自:

您好,wasm版本的物理库需要用小游戏平台的原生接口加载,目前LayaAir使用的fetch方法还不支持。建议您先使用js版本的物理库。

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作