请问你解决了嘛,我也遇到了这个问题
求助,Unity转小游戏运行报错WebGL直接打包在浏览器运行正常,导出微信小游戏运行时报错: [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details. [system] WeChatLib: 3.3.3 (2024.1.23 17:19:51) Wechat Lib:3.3.3, 2024.1.23 17:19:51 Current Wechat version do not support asynchronous getSystemInfo. "wx.getSystemInfoAsync" will be finished by synchronous implementation. [system] No. of subpackages: 2 [system] LazyCodeLoading: false plugin.js:93 [minigamefe mgp]: inited plugin.js:93 [PLUGIN WARN 18:28.13.672] http://usr/__GAME_FILE_CACHE目录不存在,创建目录 value @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 vn @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 vn @ plugin.js:93 value @ plugin.js:93 t @ plugin.js:93 value @ plugin.js:93 (anonymous) @ plugin.js:93 (anonymous) @ plugin.js:93 (anonymous) @ plugin.js:93 (anonymous) @ plugin.js:2 (anonymous) @ game.js? [sm]:69 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 [PLUGIN LOG 18:28.13.686] 使用公共目录存储patch plugin.js:93 [PLUGIN WARN 18:28.13.694] [仅开发版/体验版生效]已开启最佳实践检测, 请前往github查阅说明文档: https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/Design/PerformanceMonitor.md value @ plugin.js:93 value @ plugin.js:93 t @ plugin.js:93 (anonymous) @ game.js? [sm]:147 Promise.then (async) (anonymous) @ game.js? [sm]:63 game.js? [sm]:204 game starting {renderer: "", isH5Plus: false, abi: "", brand: "devtools", model: "iPhone 5", …} plugin.js:93 [PLUGIN LOG 18:28.13.710] 缓存文件数= 0 ,总文件大小= 0 plugin.js:93 [PLUGIN LOG 18:28.13.721] [coverview-loadImage] cost= 14 plugin.js:93 [PLUGIN LOG 18:28.13.736] [coverview-init] cost= 15 plugin.js:93 [PLUGIN LOG 18:28.13.889] 资源无缓存 plugin.js:93 [PLUGIN LOG 18:28.13.890] 插件信息: {pluginVersion: "1.2.38", unityVersion: "2021.3.21f1c1", loadDataPackageFromSubpackage: true, adSpaceType: 0, adType: 0, …} plugin.js:93 [PLUGIN LOG 18:28.13.892] 开始下载wasm代码包 plugin.js:93 [PLUGIN LOG 18:28.13.894] 通过小游戏分包加载资源 904983936863e91b.webgl.data.unityweb.bin.txt , 是否压缩= false plugin.js:93 [PLUGIN LOG 18:28.13.894] 首包资源无缓存,开始下载 plugin.js:93 [PLUGIN WARN 18:28.13.896] 切换quotacontrol失败: {errMsg: "setFileSpaceStatistics:fail 开发者工具暂时不支持此 API 调试,请使用真机进行开发"} value @ plugin.js:93 fail @ plugin.js:93 plugin.js:93 [PLUGIN LOG 18:28.13.897] 使用主线程写文件 [worker] getNetworkType:fail not support [worker] getPermissionBytes:fail not support [worker] getPermissionBytes:fail not support [worker] getSystemInfo:fail not support [worker] getABTestConfig:fail not support [worker] getABTestConfig:fail not support [worker] getPermissionBytes:fail not support [worker] getABTestConfig:fail not support [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details. [JS 文件编译错误] 以下文件通过自定义配置,已跳过 ES6 转 ES5 的处理 webgl.wasm.framework.unityweb.js plugin.js:93 [PLUGIN TIME LOG 18:28.14.526] 下载wasm代码包: 634ms plugin.js:93 [PLUGIN LOG 18:28.14.530] start invoke UnityModule webgl.wasm.framework.unityweb.js:4 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. unityFramework @ webgl.wasm.framework.unityweb.js:4 (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 va @ 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 va @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:219 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 [PLUGIN TIME LOG 18:28.14.541] 下载资源包: 647ms plugin.js:93 [PLUGIN TIME LOG 18:28.14.996] 读取资源文件: 453ms plugin.js:93 [PLUGIN LOG 18:28.14.997] [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,49,0,0,0,11,0,0,0,98,111,111,116,46,99,111,110,102,105,103,33,1,0,0,70,4,3,0,12,0,0,0,100,97,116,97,46,117,110,105,116 plugin.js:93 [PLUGIN LOG 18:28.16.043] 开始下载wasm代码包 plugin.js:93 [PLUGIN TIME LOG 18:28.16.044] 下载wasm代码包: 2ms plugin.js:93 [PLUGIN LOG 18:28.16.047] start invoke UnityModule webgl.wasm.framework.unityweb.js:4 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. unityFramework @ webgl.wasm.framework.unityweb.js:4 (anonymous) @ plugin.js:93 Promise.then (async) t.invokeLoadWasmCode @ plugin.js:93 t @ plugin.js:93 (anonymous) @ plugin.js:93 setTimeout (async) (anonymous) @ plugin.js:93 Promise.catch (async) 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 va @ 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 va @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:219 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 [PLUGIN ERROR 18:28.16.049] start game fail: TypeError: (intermediate value) is not a function at createNamedFunction (webgl.wasm.framework.unityweb.js:4) at extendError (webgl.wasm.framework.unityweb.js:4) at Object.unityFramework [as UnityModule] (webgl.wasm.framework.unityweb.js:19) at plugin.js:93 at async Promise.all (index 0)(env: Windows,mg,1.06.2310080; lib: 3.3.3) value @ plugin.js:93 (anonymous) @ plugin.js:93 Promise.catch (async) (anonymous) @ plugin.js:93 s @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:68 (anonymous) @ plugin.js:93 va @ plugin.js:93 value @ plugin.js:93 (anonymous) @ game.js? [sm]:219 Promise.then (async) (anonymous) @ game.js? [sm]:63 [worker] reportRealtimeAction:fail not support
04-16你好,请问你这个问题解决了吗? 我也遇到了相同的问题
U3D转微信小游戏,Mirror插件联机功能无法实现,应该如何解决或者换用哪个插件?如题,本来在U3D习惯是用Mirror实现比较简单的联机,但现在转到小游戏以后由于WebSocket底层封装不同(初步排查的结果)导致联机的功能无法在小程序正常运行。 想请教一下有办法解决这个问题吗?或者有转译了能正常运行的U3D联机插件推荐吗?
04-16