我看了下,必须使用cdn,但是我资源小,首包资源就想放在小游戏包体内,不想使用cdn怎么办?
微信开发者工具导入unity打包的minigame文件夹,模拟器一直显示初始化中微信开发者工具导入unity打包的minigame文件夹,模拟器一直显示初始化中,[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.2.5 (2024.3.20 23:36:58) Wechat Lib:3.2.5, 2024.3.20 23:36:58 [system] No. of subpackages: 2 [system] LazyCodeLoading: false unity-namespace.js? [sm]:158 game starting {renderer: "", isH5Plus: false, abi: "", brand: "devtools", model: "iPhone 6/7/8", …} plugin.js:93 [minigamefe mgp]: inited plugin.js:93 [PLUGIN LOG 15:32.19.605] 使用公共目录存储patch plugin.js:93 [PLUGIN WARN 15:32.19.618] [仅开发版/体验版生效]已开启最佳实践检测, 请前往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]:153 Promise.then (async) (anonymous) @ game.js? [sm]:63 plugin.js:93 [PLUGIN LOG 15:32.19.836] 缓存文件数= 3 ,总文件大小= 102247 plugin.js:93 [PLUGIN LOG] systemInfo= {…} plugin.js:93 [PLUGIN LOG] check permission: coverview=true, gameTransfer=true, reportKeyValue=true plugin.js:93 [PLUGIN LOG 15:32.19.862] [coverview-loadImage] cost= 31 plugin.js:93 [PLUGIN LOG 15:32.19.909] [coverview-init] cost= 47 plugin.js:93 [PLUGIN LOG 15:32.20.321] 特性开关拉取超时,使用默认值 plugin.js:93 [PLUGIN LOG 15:32.20.326] 资源有缓存 plugin.js:93 [PLUGIN LOG 15:32.20.327] 插件信息: {pluginVersion: "1.2.54", unityVersion: "2022.3.2t11", loadDataPackageFromSubpackage: true, adSpaceType: 0, adType: 0, …} plugin.js:93 [PLUGIN LOG 15:32.20.330] 开始下载wasm代码包 plugin.js:93 [PLUGIN LOG 15:32.20.333] 通过小游戏分包加载资源 c6ebd1b0ccad692e.webgl.data.unityweb.bin.txt , 是否压缩= false plugin.js:93 [PLUGIN LOG 15:32.20.334] 从缓存加载首包资源 plugin.js:93 [PLUGIN WARN 15:32.20.340] 切换quotacontrol失败: {errMsg: "setFileSpaceStatistics:fail 开发者工具暂时不支持此 API 调试,请使用真机进行开发"} value @ plugin.js:93 fail @ plugin.js:93 plugin.js:93 [PLUGIN LOG 15:32.20.341] 使用主线程写文件 [worker] getNetworkType: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. plugin.js:93 [PLUGIN TIME LOG 15:32.20.974] 下载wasm代码包: 644ms plugin.js:93 [PLUGIN LOG 15:32.20.983] start invoke UnityModule plugin.js:93 [PLUGIN LOG 15:32.20.984] invoke UnityModule for dotnet webgl.wasm.framework.unityweb.js:4 MONO_WASM: Failed to load config file ./blazor.boot.json [object Object] undefined Error: Failed to load config file ./blazor.boot.json [object Object] undefined at _callee27$ (http://127.0.0.1:36714/game/framework/webgl.wasm.framework.unityweb.js:1829:41) at s (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:1588) at Generator.<anonymous> (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:2925) at Generator.throw (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:1951) at asyncGeneratorStep (http://127.0.0.1:36714/game/@babel/runtime/helpers/asyncToGenerator.js:1:906) at i (http://127.0.0.1:36714/game/@babel/runtime/helpers/asyncToGenerator.js:1:1178)(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 _callee27$ @ webgl.wasm.framework.unityweb.js:4 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 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ asyncToGenerator.js:1 (anonymous) @ 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 (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 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 TIME LOG 15:32.20.995] 下载资源包: 660ms 6Error: Failed to load config file ./blazor.boot.json [object Object] undefined at _callee27$ (webgl.wasm.framework.unityweb.js:4) at s (regeneratorRuntime.js:1) at Generator.<anonymous> (regeneratorRuntime.js:1) at Generator.throw (regeneratorRuntime.js:1) at asyncGeneratorStep (asyncToGenerator.js:1) at i (asyncToGenerator.js:1)(env: Windows,mg,1.06.2402040; lib: 3.2.5) plugin.js:93 [PLUGIN LOG 15:32.21.010] data download size=1036551 6unity-namespace.js? [sm]:127 unhandledRejection: Error: Failed to load config file ./blazor.boot.json [object Object] undefined at _callee27$ (webgl.wasm.framework.unityweb.js:4) at s (regeneratorRuntime.js:1) at Generator.<anonymous> (regeneratorRuntime.js:1) at Generator.throw (regeneratorRuntime.js:1) at asyncGeneratorStep (asyncToGenerator.js:1) at i (asyncToGenerator.js:1)(env: Windows,mg,1.06.2402040; lib: 3.2.5) (anonymous) @ unity-namespace.js? [sm]:127 plugin.js:93 [PLUGIN TIME LOG 15:32.21.128] 读取资源文件: 129ms plugin.js:93 [PLUGIN LOG 15:32.21.139] [datapackage] content= 84,117,97,110,106,105,101,87,101,98,68,97,116,97,49,46,48,0,190,0,0,0,190,0,0,0,77,49,8,0,9,0,0,0,100,97,116,97,46,116,106,51,100,11,50,8,0,227,1,0,0,29,0,0,0,82,117,110,116,105,109,101,73,110 plugin.js:93 [PLUGIN LOG 15:32.21.140] data content size=1036551 plugin.js:93 [PLUGIN LOG 15:32.21.248] [coverview] start compile animation [worker] reportRealtimeAction:fail not support
06-14我们这边也是,不过去掉ios高性能+,保留ios高性能后,紫色消失了
Unity转换微信小游戏iOS打开全屏为啥是紫色?我使用Unity2022.3.0和2022.3.5分别打包,使用的微信官方GitHub上最新的转化插件,在微信开发者工具中使用苹果14 pro max iOS:16.4扫码预览显示紫色安卓手机扫码正常iOS中也没有发现报错的日志,有没有大佬遇到过同样的问题? 我现在是降了Unity版本到2019.4.4打包出来iOS系统是可以正常预览的 [图片]
03-20APP-SERVICE-SDK:setStorageSync:fail ,客户端依然存在:微信7.0.7版本
APP-SERVICE-SDK:setStorageSync:fail急求解决,我这里不知道是客户端问题,还是自己代码问题,搜本论坛确实有一堆提问,没有解答的,急求给个解决方法。[图片] [图片] [图片] [图片]
2019-10-10同问,这不合逻辑啊
小游戏wx.createRewardedVideoAd方法的单例疑问激励video广告教程上是这样写的[图片] 按正常的理解是一个 adUnitId 创建一个单例,但实际上就算是不同的adUnitId创建的单例也是相同的,证据如下: 我创建了两个不同 adUnitId 的 rewardedVideoAd [图片] 打印结果: [图片] a和b完全相同,这就导致我多个 adUnitId 的广告,实际播放的时候走的都是第一次创建的那个 adUnitId ,也就导致在后台看不到video数据的细分,希望官方给予解答。
2019-09-02