public ScrollViewItem GetCellView(InfinateScroll scroller, int dataIndex, int cellIndex) { ScrollViewItem cellView = scroller.GetCellView(prefab); if (cellView == null) { return(null); } cellView.GetComponentInChildren <Text>().text = datas[dataIndex]; cellView.gameObject.SetActive(true); return(cellView); }
public int GetNumberOfCells(InfinateScroll scroller) { return(datas.Count); }
public float GetCellViewSize(InfinateScroll scroller, int dataIndex) { return(50); }