|
Post by z79422957 on Jul 27, 2021 14:26:31 GMT
Hi, In demo 1,I replaced text ui to TextMeshPro-text(UI) component.
In the cellview script:
public void SetData(Data data)
{ TextMeshProUGUI.text = data.someText; //invalid,When run , it cannot get the correct text.but Dragging Scroller will fetch some text correctly. Text.text = data.someText; //valid. }
EnhancedScroller 2.29.1(u2019.4.4)
|
|
|
Post by echo17 on Jul 28, 2021 12:12:10 GMT
I'm unable to reproduce. If I put in a TextureMeshPro-text(UI) component, it updates the data immediately upon ReloadData in the SetData method of Demo #1. Here is the result after pressing play: If you are still having issues, please see this FAQ: link
|
|