Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

列表生成后,数据源里的最后一个元素 void UpdateFunc (int index, RectTransform item) index无法触发到 #11

Open
zb737472783 opened this issue Sep 13, 2024 · 1 comment

Comments

@zb737472783
Copy link

zb737472783 commented Sep 13, 2024

比如,有10个元素,列表只能生成9个,确定数据源没问题.然后手动给数据源添加一个空元素,就能显示10个元素了(实际还是吞了最后一个元素).请大佬有空看看~

@aillieo
Copy link
Owner

aillieo commented Nov 23, 2024

比如,有10个元素,列表只能生成9个,确定数据源没问题.然后手动给数据源添加一个空元素,就能显示10个元素了(实际还是吞了最后一个元素).请大佬有空看看~

抱歉这么迟才回复
代码更新了一版 会强制设置item的anchor和pivot 可能能修复你遇到的问题 已推送到master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants