public SEUIContainerItem GetCellView(EnhancedScroller scroller, int dataIndex, int cellIndex) { CellView cellView = scroller.GetCellView(cellViewPrefab) as CellView; cellView.SetData(_data[dataIndex]); return(cellView); }
public EnhancedScrollerCellView GetCellView(EnhancedScroller scroller, int dataIndex, int cellIndex) { CellView cellView = scroller.GetCellView(cellViewPrefab) as CellView; // tell the cell view to calculate its layout on the first pass, // otherwise just use the size set in the data. cellView.SetData(_data[dataIndex], _calculateLayout); return(cellView); }