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 重點更新說明:
重要更新
- 修復腳本重新加載導致的內存泄漏問題,在腳本更新過程中編輯器不再有持續性的內存增長。
- 修復一些編輯器構建相關問題:
- 修復勾選首包為遠程包后取消,可能導致原生平臺構建失敗的問題;
- 項目配置更改,可能導致構建后 md5 變化的問題;
- 修復勾選 MD5 后重復構建兩次 hash 值發生變化的問題。
- iOS 平臺選擇 “跳過 XCode 工程更新” 時避免拷貝資源文件夾,修復打包時無資源的問題。
- 提升原生平臺穩定性:
- 修復 Vulkan 后端在 Android 12 上的崩潰問題;
- 避免游戲在 Android Surface 銷毀時(進入后臺等情況)引發的崩潰和黑屏問題;
- 修復游戲從 Camera 返回時可能出現的崩潰問題。
- 在 Spine 和 DragonBones 中使用共享的 VertexBufferAccessor,提升 GPU 提交 buffer 的性能。
- 修復一些 v3.4.1 重構引入的問題:
- 修復 SkeletalAnimation 在不調用 play 的情況下直接 setTime 無效的問題;
- 修復 2D 粒子在部分情況下會產生閃爍的渲染表現問題;
- 修復 Tiledmap 的渲染問題;
- 修復 Dragonbones 在設置位置后需要調用 `ArmatureDisplay.markForUpdateRenderData` 才可以正確更新的問題;
- 修復 Mask 對 Spine 和 Dragonbones 無效的問題。
- 給引擎創建的默認場景添加天空盒(如果不需要天空盒的項目,請記得刪除場景中 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]
前往官網下載最新版本,歡迎大家使用與體驗,再次感謝各位開發者的支持!