https://yousandi.feishu.cn/docx/VNDwdfA0UoeKgVxefhrcMOuFnYf 参考FAQ 第二条
unity工程转微信小游戏,加载的时候报错按照https://unity.cn/instantgame/docs/WechatMinigame/Demo/文档中演示操作从unity导入到微信开发者工具,在预览的时候时候遇到的问题 [图片] dotnet.runtime.8.0.0.ltwt23bs1c.js:3 MONO_WASM: instantiate_wasm_module() failed CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) dt @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 webgl.wasm.framework.unityweb.js:4 MONO_WASM: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) u @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 quit_ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 Me @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 _callee8$ @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 i @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 (anonymous) @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.ltwt23bs1c.js:3 _createWasm @ dotnet.native.8.0.0.6zbqvxsni9.js:8 _callee$ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee32$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _ze @ webgl.wasm.framework.unityweb.js:4 ze @ webgl.wasm.framework.unityweb.js:4 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 webgl.wasm.framework.unityweb.js:4 Error in mono_download_assets: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ webgl.wasm.framework.unityweb.js:4 Promise.catch (async) _callee14$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Q @ webgl.wasm.framework.unityweb.js:4 Q @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ fix.js:25 setTimeout (async) window.setTimeout @ fix.js:22 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 quit_ @ dotnet.native.8.0.0.6zbqvxsni9.js:25 Me @ webgl.wasm.framework.unityweb.js:4 ke @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 Promise.catch (async) _callee14$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Q @ webgl.wasm.framework.unityweb.js:4 Q @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ fix.js:25 setTimeout (async) window.setTimeout @ fix.js:22 _callee30$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _callee31$ @ webgl.wasm.framework.unityweb.js:4 s @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 (anonymous) @ regeneratorRuntime.js:1 asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 Promise.then (async) asyncGeneratorStep @ asyncToGenerator.js:1 c @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 _Ne @ webgl.wasm.framework.unityweb.js:4 Ne @ webgl.wasm.framework.unityweb.js:4 unityFramework @ webgl.wasm.framework.unityweb.js:136 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 m @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 o @ plugin.js:93 Promise.then (async) u @ plugin.js:93 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.then (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 Sa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:206 Promise.then (async) (anonymous) @ game.js? [sm]:63 8CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) plugin.js:93 [PLUGIN LOG 09:49.50.650] 开始下载wasm代码包 plugin.js:93 [PLUGIN TIME LOG 09:49.50.652] 下载wasm代码包: 2ms 5unity-namespace.js? [sm]:125 unhandledRejection: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ unity-namespace.js? [sm]:125 3unity-namespace.js? [sm]:125 unhandledRejection: CompileError: WebAssembly.instantiate(): unexpected section <Exception> (enable with --experimental-wasm-eh) @+62218(env: Windows,mg,1.06.2402040; lib: 3.2.5)
05-23