cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Fix repeated calls for render-component onEnabled

Open knoxHuang opened this issue 3 years ago • 0 comments

修复当用户脚本在 onLoad 触发了某个渲染组件的 enabled 为 true 时,会使该组件重复触发了多次 onEnabled,导致出现组件显示效果错误的问题

测试用例: https-::github.com:cocos:cocos-engine:pull:12737 测试用例.zip

正确效果: image

当前效果: image

knoxHuang avatar Sep 13 '22 02:09 knoxHuang