- 子域通信到底用什么方式?
开放能力 /关系链 /开放数据域框架 这里介绍是用 [图片] 而UI Kit的排名控件默认代码则是: [图片] 问题: 前者连子域都启动不了,后者启动子域则奔溃。
2022-11-08 - 开启子域(开放数据域 openDataContext),引擎奔溃?
想做一个排行,在UI kit里面拖入排行控件,在代码里只要用 let openDataContext = wx.getOpenDataContext() 开启子域,一播放引擎就奔溃,如下图(注释掉该行代码,则播放不奔溃): [图片]
2022-11-08 - 构建QQ小游戏,这么多bug?
1、先是构建失败,说操作不被允许。将微信开发者工具用管理员权限运行后,问题解决。 [图片] 2、将构建的文件导入QQ开发者工具,显示如下: [图片] 我能ping通127.0.0.1,但127.0.0.1:50379ping不通。
2022-11-02 - cocos 导入项目报错,不是最新版?
新建cocos项目,build以后,在小游戏中导入,报错如下: 这明显跟小游戏界面不一样啊。这个是网页版的吧?跟unity版本根本不一样啊。求大神解答,如何从cocos做好以后,导入开发者工具,接入游戏房间等功能?谢谢大佬。 [图片]
2022-10-23 - 按钮图片设置透明度的诡异现象?
这两个按钮,如下图: [图片] 功能很简单,两个按钮是联动的,设置一个开关,开关值为真时,这两个按钮图片的透明度就是正常255,如果开关值为假,两个按钮的透明度为64,也就是25%的透明度。 问题:这两个按钮,只要按下其中任何一个(设置开关值为假),该按钮透明度为100%,只有另外一个开关透明度设置成了25%,只有再按一次那个25%透明度的按钮,才能将刚才100%透明度的按钮给设置成25%的透明度。 为了排查,我简化了代码,只要按下按钮,就将两个按钮响应改为,设置两个按钮图片为25%,问题依然存在,代码如下 [图片] 求大佬解惑。
2022-10-20 - wx.setStorage() 存不进去?存储bug?
情况很诡异,用wx.setStorage()第一次能存储进去,然后就不行了。用wx.setStorageSync()情况一样。 [图片] 每次运行可以看出,跑到了success那里,说明存储是成功的。 我也尝试了其他数据形式,都是正常的。有没有大佬遇到过这种情况。
2022-10-16 - 构建报错,黑屏,各种预览、调试黑屏?但是播放正常。
模拟器预览的报错: [图片] pc端自动预览 [图片] 手机端自动预览: 黑屏 真机调试,手机端黑屏,报错如下: [图片]
2022-10-15 - 播放正常,无法构建?
一直报错,往前换了几个版本,也还是报错。 构建失败 "ReduceUuidProcess异常退出,计算所有需要打包的资源出错 以下资源丢失uuid依赖 [图片] 2022-10-15_2-07-26 ["开始构建"] 2022-10-15_2-07-26 ["编译资源中"] 2022-10-15_2-07-26 ["初始化processor: EffectProcess",0] 2022-10-15_2-07-26 ["切换processor上下文: EffectProcess",0] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: EffectProcess",0] 2022-10-15_2-07-26 ["processor处理资源变更中: EffectProcess",0] 2022-10-15_2-07-26 ["初始化processor: scenePrefabProcess",6] 2022-10-15_2-07-26 ["切换processor上下文: scenePrefabProcess",6] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: scenePrefabProcess",6] 2022-10-15_2-07-26 ["processor处理资源变更中: scenePrefabProcess",6] 2022-10-15_2-07-26 ["移动 prefab/scene……(1/7) uuid: 4de2c5R-c262b3E-22ad69S-a9770cR"] 2022-10-15_2-07-26 ["移动 prefab/scene……(2/7) uuid: 1f775dR-f5d164E-bc313cS-0e06aaR"] 2022-10-15_2-07-26 ["移动 prefab/scene……(3/7) uuid: ec7485R-8b91adE-8a13e9S-abdfcfR"] 2022-10-15_2-07-26 ["移动 prefab/scene……(4/7) uuid: 01d8eaR-b9a07cE-2b76f1S-5eff61R"] 2022-10-15_2-07-26 ["移动 prefab/scene……(5/7) uuid: 4a89a9R-ea6670E-a9d7d0S-b38e9bR"] 2022-10-15_2-07-26 ["移动 prefab/scene……(6/7) uuid: 3b5586R-089f24E-534f8cS-4d73f6R"] 2022-10-15_2-07-26 ["移动 prefab/scene……(7/7) uuid: a4eccbR-688c4dE-55cc41S-7bf4b0R"] 2022-10-15_2-07-26 ["merge prefab/scene……(1/7) uuid: 4de2c5R-c262b3E-22ad69S-a9770cR"] 2022-10-15_2-07-26 ["merge prefab/scene……(2/7) uuid: 1f775dR-f5d164E-bc313cS-0e06aaR"] 2022-10-15_2-07-26 ["merge prefab/scene……(3/7) uuid: ec7485R-8b91adE-8a13e9S-abdfcfR"] 2022-10-15_2-07-26 ["merge prefab/scene……(4/7) uuid: 01d8eaR-b9a07cE-2b76f1S-5eff61R"] 2022-10-15_2-07-26 ["merge prefab/scene……(5/7) uuid: 4a89a9R-ea6670E-a9d7d0S-b38e9bR"] 2022-10-15_2-07-26 ["merge prefab/scene……(6/7) uuid: 3b5586R-089f24E-534f8cS-4d73f6R"] 2022-10-15_2-07-26 ["merge prefab/scene……(7/7) uuid: a4eccbR-688c4dE-55cc41S-7bf4b0R"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(1/7) uuid: 4de2c5R-c262b3E-22ad69S-a9770cR"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(2/7) uuid: 1f775dR-f5d164E-bc313cS-0e06aaR"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(3/7) uuid: ec7485R-8b91adE-8a13e9S-abdfcfR"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(4/7) uuid: 01d8eaR-b9a07cE-2b76f1S-5eff61R"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(5/7) uuid: 4a89a9R-ea6670E-a9d7d0S-b38e9bR"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(6/7) uuid: 3b5586R-089f24E-534f8cS-4d73f6R"] 2022-10-15_2-07-26 ["粒子烘培 prefab/scene……(7/7) uuid: a4eccbR-688c4dE-55cc41S-7bf4b0R"] 2022-10-15_2-07-26 ["初始化processor: defaultProcess",11] 2022-10-15_2-07-26 ["切换processor上下文: defaultProcess",11] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: defaultProcess",11] 2022-10-15_2-07-26 ["processor处理资源变更中: defaultProcess",11] 2022-10-15_2-07-26 ["(1/26)正在处理文件:__temp/buildProcess/scenePrefabProcess/3b5586R-089f24E-534f8cS-4d73f6R.scene",11] 2022-10-15_2-07-26 ["(2/26)正在处理文件:__temp/buildProcess/scenePrefabProcess/a4eccbR-688c4dE-55cc41S-7bf4b0R.scene",11] 2022-10-15_2-07-26 ["初始化processor: rawProcess",16] 2022-10-15_2-07-26 ["切换processor上下文: rawProcess",16] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: rawProcess",16] 2022-10-15_2-07-26 ["processor处理资源变更中: rawProcess",16] 2022-10-15_2-07-26 ["初始化processor: avatarProcess",22] 2022-10-15_2-07-26 ["切换processor上下文: avatarProcess",22] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: avatarProcess",22] 2022-10-15_2-07-26 ["processor处理资源变更中: avatarProcess",22] 2022-10-15_2-07-26 ["初始化processor: tplistProcess",27] 2022-10-15_2-07-26 ["切换processor上下文: tplistProcess",27] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: tplistProcess",27] 2022-10-15_2-07-26 ["processor处理资源变更中: tplistProcess",27] 2022-10-15_2-07-26 ["初始化processor: atlasProcess",32] 2022-10-15_2-07-26 ["切换processor上下文: atlasProcess",32] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: atlasProcess",32] 2022-10-15_2-07-26 ["processor处理资源变更中: atlasProcess",32] 2022-10-15_2-07-26 ["初始化processor: imageProcess",37] 2022-10-15_2-07-26 ["切换processor上下文: imageProcess",37] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: imageProcess",37] 2022-10-15_2-07-26 ["processor处理资源变更中: imageProcess",37] 2022-10-15_2-07-26 ["处理普通贴图中","0/22"] 2022-10-15_2-07-26 ["处理普通贴图中","1/22"] 2022-10-15_2-07-26 ["处理普通贴图中","2/22"] 2022-10-15_2-07-26 ["处理普通贴图中","3/22"] 2022-10-15_2-07-26 ["处理普通贴图中","4/22"] 2022-10-15_2-07-26 ["处理普通贴图中","5/22"] 2022-10-15_2-07-26 ["处理普通贴图中","6/22"] 2022-10-15_2-07-26 ["处理普通贴图中","7/22"] 2022-10-15_2-07-26 ["处理普通贴图中","8/22"] 2022-10-15_2-07-26 ["处理普通贴图中","9/22"] 2022-10-15_2-07-26 ["处理普通贴图中","10/22"] 2022-10-15_2-07-26 ["处理普通贴图中","11/22"] 2022-10-15_2-07-26 ["处理普通贴图中","12/22"] 2022-10-15_2-07-26 ["处理普通贴图中","13/22"] 2022-10-15_2-07-26 ["处理普通贴图中","14/22"] 2022-10-15_2-07-26 ["处理普通贴图中","15/22"] 2022-10-15_2-07-26 ["处理普通贴图中","16/22"] 2022-10-15_2-07-26 ["处理普通贴图中","17/22"] 2022-10-15_2-07-26 ["处理普通贴图中","18/22"] 2022-10-15_2-07-26 ["处理普通贴图中","19/22"] 2022-10-15_2-07-26 ["处理普通贴图中","20/22"] 2022-10-15_2-07-26 ["处理普通贴图中","21/22"] 2022-10-15_2-07-26 ["初始化processor: animationClipProcess",43] 2022-10-15_2-07-26 ["切换processor上下文: animationClipProcess",43] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: animationClipProcess",43] 2022-10-15_2-07-26 ["processor处理资源变更中: animationClipProcess",43] 2022-10-15_2-07-26 ["初始化processor: audioClipProcessProcess",48] 2022-10-15_2-07-26 ["切换processor上下文: audioClipProcessProcess",48] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: audioClipProcessProcess",48] 2022-10-15_2-07-26 ["processor处理资源变更中: audioClipProcessProcess",48] 2022-10-15_2-07-26 ["初始化processor: inlineFunctionProcess",53] 2022-10-15_2-07-26 ["切换processor上下文: inlineFunctionProcess",53] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: inlineFunctionProcess",53] 2022-10-15_2-07-26 ["processor处理资源变更中: inlineFunctionProcess",53] 2022-10-15_2-07-26 ["初始化processor: typeScriptProcess",58] 2022-10-15_2-07-26 ["切换processor上下文: typeScriptProcess",58] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: typeScriptProcess",58] 2022-10-15_2-07-26 ["processor处理资源变更中: typeScriptProcess",58] 2022-10-15_2-07-26 ["处理脚本文件中"] 2022-10-15_2-07-26 ["编译ts文件……"] 2022-10-15_2-07-26 ["重新构建npm……"] 2022-10-15_2-07-26 ["初始化processor: textureCubeProcessor",64] 2022-10-15_2-07-26 ["切换processor上下文: textureCubeProcessor",64] 2022-10-15_2-07-26 ["清除processor中冗余资源文件: textureCubeProcessor",64] 2022-10-15_2-07-26 ["processor处理资源变更中: textureCubeProcessor",64] 2022-10-15_2-07-27 ["初始化processor: fontProcess",69] 2022-10-15_2-07-27 ["切换processor上下文: fontProcess",69] 2022-10-15_2-07-27 ["清除processor中冗余资源文件: fontProcess",69] 2022-10-15_2-07-27 ["processor处理资源变更中: fontProcess",69] 2022-10-15_2-07-27 ["初始化processor: ReduceUuidProcess",74] 2022-10-15_2-07-27 ["切换processor上下文: ReduceUuidProcess",74] 2022-10-15_2-07-27 ["清除processor中冗余资源文件: ReduceUuidProcess",74] 2022-10-15_2-07-27 ["processor处理资源变更中: ReduceUuidProcess",74] 2022-10-15_2-07-27 ["计算打包范围"] 2022-10-15_2-07-27 ["计算所有入口资源"] 2022-10-15_2-07-27 ["计算所有入口资源结束"] 2022-10-15_2-07-27 ["计算所有需要打包的uuid"] 2022-10-15_2-07-27 ["ReduceUuidProcess异常退出,计算所有需要打包的资源出错 以下资源丢失uuid依赖: workers/sprites/block.prefab : [ fd87fcR-db7ed1E-b5905dS-2fe100R ] workers/scene/main.scene : [ fd87fcR-db7ed1E-b5905dS-2fe100R,1f6fa2R-2304a2E-3e101eS-2178acR,04ef75R-1e76bcE-bf4e8fS-9c6ddeR,4bdf25R-cad400E-9b63e2S-4626e2R,d47d16R-5eefbdE-65b6cfS-a8882fR,dd7fc0R-d89829E-98b74bS-3947f8R ] Error: 计算所有需要打包的资源出错 以下资源丢失uuid依赖: workers/sprites/block.prefab : [ fd87fcR-db7ed1E-b5905dS-2fe100R ] workers/scene/main.scene : [ fd87fcR-db7ed1E-b5905dS-2fe100R,1f6fa2R-2304a2E-3e101eS-2178acR,04ef75R-1e76bcE-bf4e8fS-9c6ddeR,4bdf25R-cad400E-9b63e2S-4626e2R,d47d16R-5eefbdE-65b6cfS-a8882fR,dd7fc0R-d89829E-98b74bS-3947f8R ] \n at u.getAllBuildUuid (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:148:7055)\n at async u.process (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:148:3510)\n at async u._process (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:1:63683)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:52385)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)\n at async t.default.run (http://127.0.0.1:44057/wegameengine/assetside_1.1.39.0/app.js:20:53583)}"]
2022-10-14 - 多账号调试界面一直横屏?
播放正常,但是多账号调试页面异常,如下图: [图片] 虽然Project Setting 和Scene Setting设置都是竖屏,但是就是显示横屏。 [图片]
2022-10-12 - wx.createInnerAudioContext()无法播放音效?
代码如下: [图片] 文件已设置为入口资源: [图片] 今天换了种方式,也不行: [图片]
2022-10-05