导出就直接报错,哪有这么坑的 webgl.wasm.framework.unityweb.js:10 navigator.mediaDevices not supported by this browser. Webcam access will not be available. Try hosting the page over HTTPS, because some browsers disable webcam access when insecure HTTP is being used. (anonymous) @ webgl.wasm.framework.unityweb.js:10 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 c @ 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 wa @ 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 wa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:207 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 [PLUGIN LOG 18:00.43.263] addRunDependency: wasm-instantiate plugin.js:93 [PLUGIN LOG 18:00.43.263] addRunDependency: wasm-preloadAssets plugin.js:93 [PLUGIN LOG 18:00.43.265] data download size=4372430 plugin.js:93 [PLUGIN TIME LOG 18:00.43.395] 读取资源文件: 142ms plugin.js:93 [PLUGIN LOG 18:00.43.412] [datapackage] content= 85,110,105,116,121,87,101,98,68,97,116,97,49,46,48,0,240,0,0,0,240,0,0,0,78,235,3,0,12,0,0,0,100,97,116,97,46,117,110,105,116,121,51,100,62,236,3,0,196,3,0,0,29,0,0,0,82,117,110,116,105,109,101,73 plugin.js:93 [PLUGIN LOG 18:00.43.412] data content size=4372430 plugin.js:93 [PLUGIN LOG 18:00.43.412] [datapackage] fileSize=4372430, defaultSize=4372430, optimalSize=NaN plugin.js:93 [PLUGIN TIME LOG 18:00.43.414] 解析资源: 2ms plugin.js:93 [PLUGIN LOG 18:00.43.414] removeRunDependency: wasm-preloadAssets plugin.js:93 [PLUGIN LOG 18:00.43.992] [coverview] start compile animation plugin.js:93 failed to asynchronously prepare wasm: LinkError: WebAssembly.instantiate(): Impor<a href="/community/develop/issue/831" target="_blank"> #831 </a>module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable(env: macOS,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 (anonymous) @ webgl.wasm.framework.unityweb.js:10 Promise.then (async) instantiateArrayBuffer @ webgl.wasm.framework.unityweb.js:10 instantiateAsync @ webgl.wasm.framework.unityweb.js:10 createWasm @ webgl.wasm.framework.unityweb.js:10 (anonymous) @ webgl.wasm.framework.unityweb.js:25 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 c @ 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 wa @ 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 wa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:207 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 LinkError: WebAssembly.instantiate(): Impor<a href="/community/develop/issue/831" target="_blank"> #831 </a>module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable plugin.js:93 LinkError: WebAssembly.instantiate(): Impor<a href="/community/develop/issue/831" target="_blank"> #831 </a>module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable(env: macOS,mg,1.06.2402040; lib: 3.2.5) e.printErr @ plugin.js:93 abort @ webgl.wasm.framework.unityweb.js:10 (anonymous) @ webgl.wasm.framework.unityweb.js:10 Promise.then (async) instantiateArrayBuffer @ webgl.wasm.framework.unityweb.js:10 instantiateAsync @ webgl.wasm.framework.unityweb.js:10 createWasm @ webgl.wasm.framework.unityweb.js:10 (anonymous) @ webgl.wasm.framework.unityweb.js:25 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 c @ 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 wa @ 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 wa @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:207 Promise.then (async) (anonymous) @ game.js? [sm]:63 Error: WXUncaughtException at currentStackTrace (util.js:45) at Object.WXUncaughtException (util.js:48) at abort (webgl.wasm.framework.unityweb.js:10) at webgl.wasm.framework.unityweb.js:10(env: macOS,mg,1.06.2402040; lib: 3.2.5) unity-namespace.js? [sm]:127 unhandledRejection: Error: WXUncaughtException at currentStackTrace (util.js:45) at Object.WXUncaughtException (util.js:48) at abort (webgl.wasm.framework.unityweb.js:10) at webgl.wasm.framework.unityweb.js:10(env: macOS,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ unity-namespace.js? [sm]:127 plugin.js:93 [PLUGIN ERROR 18:01.12.436] still waiting runDependencies, ids= ["wasm-instantiate"](env: macOS,mg,1.06.2402040; lib: 3.2.5) value @ plugin.js:93 (anonymous) @ plugin.js:93 setTimeout (async) value @ plugin.js:93 value @ plugin.js:93 value @ plugin.js:93 t @ plugin.js:93 (anonymous) @ game.js? [sm]:153 Promise.then (async) (anonymous) @ game.js? [sm]:63 [worker] reportRealtimeAction:fail not support
failed to asynchronously prepare wasm:怎么解决plugin.js:93 failed to asynchronously prepare wasm: LinkError: WebAssembly.instantiate(): Import #1037 module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable(env: Windows,mg,1.06.2406052; lib: 3.3.5) plugin.js:93 LinkError: WebAssembly.instantiate(): Import #1037 module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable(env: Windows,mg,1.06.2406052; lib: 3.3.5) Error: WXUncaughtException at currentStackTrace (util.js? [sm]:45) at Object.WXUncaughtException (util.js? [sm]:48) at abort (webgl.wasm.framework.unityweb.js:11) at webgl.wasm.framework.unityweb.js:11(env: Windows,mg,1.06.2406052; lib: 3.3.5) still waiting runDependencies, ids= ["wasm-instantiate"](env: Windows,mg,1.06.2406052; lib: 3.3.5)
07-08