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

Uncaught TypeError: Cannot read properties of undefined (reading 'x')

Open tandanchendu opened this issue 1 year ago • 1 comments

Cocos Creator version

3.3.2

System information

win10

Issue description

TGTQ)XX@`BKL@8%U9CJO)T3

Relevant error log output

Q6B{_`MIVO406C0RSJHR8~R

Steps to reproduce

Sprite平铺模式下update里不断修改图片宽度,概率出现这个错误,貌似越界了,也有可能是改变了宽度按但datalist数据没更新导致。 路径 cocos-engine/cocos/2d/assembler/sprite/tiled.ts

Minimal reproduction project

No response

tandanchendu avatar Aug 11 '22 06:08 tandanchendu

({S0DM6VXFQ1_HN4 YHA`N7 加个限制应该暂时可以了

tandanchendu avatar Aug 11 '22 07:08 tandanchendu

可能是因为直接通过获取UITransform修改width属性导致的,改成修改节点width属性。

tandanchendu avatar Aug 12 '22 09:08 tandanchendu

未能复现,结构已经发生变化,麻烦再出现时重新反馈,感谢

LinYunMo avatar Jun 19 '23 05:06 LinYunMo