Closed Fishchip511 closed 1 year ago
There is one demo called DemoScene_MultiCell
, providing three types of cells.
There are only two key APIs that need attension:
public virtual GameObject GetObject(int index)
choose which prefab (or SO_Item
here) for this cell, like InitOnStartMulti .public override void ScrollCellIndex
helps every prefab known its index and show correct data, like ScrollIndexCallback_CustomI would suggest check GetObject
first, to make sure the right SO_Item
is provided for every index.
Sorry for long reply just came back from vacation. Thanks for the reply I managed to get it working by following what you said. I also made a customlooplistbank that was tailored to handle SO_Item. Then I made a ScrollIndexCallback_SO_Item which weapons, consumables etc will inherit from.
Thank you so much for the useful scrollrect tool!