cocos-engine
cocos-engine copied to clipboard
Uncaught TypeError: Cannot read properties of undefined (reading 'x')
Cocos Creator version
3.3.2
System information
win10
Issue description
Relevant error log output
Steps to reproduce
Sprite平铺模式下update里不断修改图片宽度,概率出现这个错误,貌似越界了,也有可能是改变了宽度按但datalist数据没更新导致。 路径 cocos-engine/cocos/2d/assembler/sprite/tiled.ts
Minimal reproduction project
No response
加个限制应该暂时可以了
可能是因为直接通过获取UITransform修改width属性导致的,改成修改节点width属性。
未能复现,结构已经发生变化,麻烦再出现时重新反馈,感谢