* Add extra steps to the destroy functions to update the cached resources.
This will make sure that the resources in device.stateCache is valid.
* unbind a resource before destroying it
* remove unnecessary non-null assertion
* update the state after the destruction to make the process robust
* fix the bugs introduced in PR9854.
bug: forgot to update the active texUnit in stateCache.
* reduce the use of dot operator to improve performance.
* fix the bug introduced in the previous commit
* reduce the use of dot operator to improve performance
* Update Scheduler API
Sync 3.4.0
changeLog:
The delay parameter of schdule is in seconds and needs to be marked
Re https://forum.cocos.org/t/topic/126830
* fix eslint
fix eslint
* Update scheduler.ts
* Update scheduler.ts
* Update scheduler.ts
Co-authored-by: muxiandong <24754593@qq.com>
* modify builtin texture generation + particle unit test + particle system capacity issue 10417
* change texture format to RGBA8
* modify builtin texture generation
* modify format and remove particle parts out to another pr
* fix array buffer view generation
* Add extra steps to the destroy functions to update the cached resources.
This will make sure that the resources in device.stateCache is valid.
* unbind a resource before destroying it
* remove unnecessary non-null assertion
* update the state after the destruction to make the process robust
* UI MeshBuffer Cache add
* support hierarchy changed event
* notify upper
* use Dirty by Hierarchy Changed
* PR fix
* Fix CI
* fix CI
* support hierarchy changed event & function name change
* function name change
* comment add
* type change
Co-authored-by: santy-wang <wh19930829@qq.com>
* output error when node of comp is null #9214
(cherry picked from commit 2d8ac78094af8a5ef1866140abb2819ed0bf8bba)
* use 'assertIsTrue'
(cherry picked from commit 62a29d8cce733de49220945a2de0dd0f40e3a1f6)
* update log
(cherry picked from commit ad4327e95f4f1e75a18f2cb2b0e7127260a4ed35)
* optimize format
* add DEBUG condition and fix bug
* output error when comp.name is invoked and replace condition that judge whether comp.name is valid.
* remove component.name error log and optimize null node exception report
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>