You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class testItemData : InfiniteScrollData
{
public int index = 0;
public Sprite img;
}
public class test : InfiniteScrollItem
{
public Text text;
public override void UpdateData(InfiniteScrollData scrollData)
{
base.UpdateData(scrollData);
testItemData itemData = (testItemData)scrollData;
text.text = `itemData.index.ToString();`
}
}
위는 아이템 구조체이며,
testItemData data = new testItemData();
for (int i = 0; i < limit; i++)
{
data.index = i;
verticalScrollList.InsertData(data);
}
위와 같이 데이타를 넣으면
스크롤뷰에서 스크롤 후 맨마지막 데이터로 전체가 바뀝니다.
따로 설정을 빠트린 부분이 있을까요?
The text was updated successfully, but these errors were encountered:
위는 아이템 구조체이며,
위와 같이 데이타를 넣으면
스크롤뷰에서 스크롤 후 맨마지막 데이터로 전체가 바뀝니다.
따로 설정을 빠트린 부분이 있을까요?
The text was updated successfully, but these errors were encountered: