立即下载
EN
中文
Cocos Creator 3.4.2 今日发布
2022.03.10 by Cocos
Cocos Creator 版本更新

Cocos Creator 3.4.2 今日发布。在 v3.4.1 中我们完善了 2D 渲染组件的数据提交和合批策略,由于这些是触及基础的改动,所以引发了一些 Tiledmap,Graphics 的问题。并且 Spine 和 Dragonbones 在 Android 浏览器上性能没有得到提升,这些问题都在 v3.4.2 版本中得到了集中的解决。

另外,在社区的积极测试和反馈下,我们也修复了一些编辑器相关的体验问题,比如脚本重新编译时导致的内存泄露、大项目构建 iOS 平台时资源拷贝的卡顿问题。再次感谢社区开发者们。

请所有使用 v3.4 的用户升级到 v3.4.2,将得到更优秀的稳定性和开发体验。

以下是 Cocos Creator 3.4.2 重点更新说明:

重要更新

  1. 修复脚本重新加载导致的内存泄漏问题,在脚本更新过程中编辑器不再有持续性的内存增长。
  2. 修复一些编辑器构建相关问题:
    • 修复勾选首包为远程包后取消,可能导致原生平台构建失败的问题;
    • 项目配置更改,可能导致构建后 md5 变化的问题;
    • 修复勾选 MD5 后重复构建两次 hash 值发生变化的问题。
  3. iOS 平台选择 “跳过 XCode 工程更新” 时避免拷贝资源文件夹,修复打包时无资源的问题。
  4. 提升原生平台稳定性:
    • 修复 Vulkan 后端在 Android 12 上的崩溃问题;
    • 避免游戏在 Android Surface 销毁时(进入后台等情况)引发的崩溃和黑屏问题;
    • 修复游戏从 Camera 返回时可能出现的崩溃问题。
  5. 在 Spine 和 DragonBones 中使用共享的 VertexBufferAccessor,提升 GPU 提交 buffer 的性能。
  6. 修复一些 v3.4.1 重构引入的问题:
    • 修复 SkeletalAnimation 在不调用 play 的情况下直接 setTime 无效的问题;
    • 修复 2D 粒子在部分情况下会产生闪烁的渲染表现问题;
    • 修复 Tiledmap 的渲染问题;
    • 修复 Dragonbones 在设置位置后需要调用 `ArmatureDisplay.markForUpdateRenderData` 才可以正确更新的问题;
    • 修复 Mask 对 Spine 和 Dragonbones 无效的问题。
  7. 给引擎创建的默认场景添加天空盒(如果不需要天空盒的项目,请记得删除场景中 LDR 和 HDR 的两套天空盒资源)。

Editor

  • 修复动画时间轴右键事件帧后,查看红线随鼠标滑动而移动的问题
  • 修复编辑器重启后,需要点击运行才能预览 web 项目的问题
  • 修复编译原生模拟器 UI_GPU_DRIVEN 的报错
  • 修复勾选 MD5 后重复构建两次 hash 值发生变化的问题
  • 修复 prefab 数据里根节点 root 为 null 会导致报错的问题
  • 优化属性检查器上部分属性的顺序
  • 修复 Canvas Camera 在编辑器中 resize 的问题
  • 修复选中节点后层级管理器不会自动展开的问题
  • 修复 Mac 上 num-input shift + wheel 功能失效的问题
  • 修复动画编辑切换属性轨道后偶现未及时更新数据的问题
  • 修复动画编辑部分特殊分量轨道无法粘贴的问题
  • 修复脚本重新加载导致的内存泄漏问题
  • 修复项目配置更改,可能导致构建后 md5 变化的问题
  • 修复属性检查器上 resetComponent 后无法删除的问题
  • 修复构建插件机制 BuildResult 查询图集资源路径时的返回值错误问题
  • 修复勾选首包为远程包后取消,可能导致原生平台构建失败的问题

Engine

  • Shared vertex buffer accessor for Spine and DragonBones [10077]
  • Fix skeletal animation sample() does not work as intended [10006]
  • Fix DragonBones node can’t be moved in editor [10031]
  • Fix 2d particle rendering issue [10038]
  • Fix Tiled map rendering issue [10059]
  • Fix TiledLayer culling row and col [10035]
  • Fix MotionStreak updateColor bug [10055]
  • Add default skybox [10021]
  • Fix planar shadow z-fighting [10026]
  • Add OHOS platform detection [10028]
  • Fix skybox stretch in ortho projection [10045]
  • Fix releaseMapInfo error. [10062]
  • Add protection for invalid node.uiProps [10060]
  • Fix native platform mesh-render-data index error. [10071]
  • Optimize multi-touch on ByteDance platform [10086]
  • Fix canvas widget bug in editor [10052]
  • Fix renderData update bug when renderable2d is not rendering [10101]
  • Fix interface checking [10109]
  • Fix pointer event list manager [10084]
  • Fix custom class missing when the instantiate error [10128]
  • Fix bug for compress texture usage under Sprite grayscale mode [10129]
  • Fix getTiledTileAt cause layer show wrong. [10137]
  • Fix Node rotate API doc [10140]
  • Ensure RenderData.clear won’t break usability [10177]
  • Update editBox size when node resize [10188]
  • Fix iOS version detection on Wechat platform [10159]
  • Fix mask is not working for spine/db [10201]
  • Improve touch event performance by caching system info on ByteDance platform [10218]
  • Fix merge batches issue with multi canvas [10232]
  • Add JsbBridgeWrapper for OHOS [4204]
  • VK: fix android 12 crash [4217]
  • Supply a default context when surface destroyed [4222]
  • Use same mtx for write [4220]
  • iOS/mac skip POST_BUILD copy Resources folder procedure [4216]
  • Fix spine binary data read issue. [4229]
  • Fix loop audio would stop for ios system [4254]
  • Fix restart view size [4256]
  • Fix spirv incorrect name on binding [4259]
  • Fix app crash after switch back from Camera [4268]
  • Fix incorrect resize behavior on iOS [4265]

前往官网下载最新版本,欢迎大家使用与体验,再次感谢各位开发者的支持!