Releases: zhaozilong1988/UITableViewForUnity
Hotfix: #21 #24
New Features: Add NestedScrollRect for implementing Netflix-like list
Added NestedScrollRect.cs for implementing a Netflix-like interface, which scrollrect that be able to scroll up and down, but also be able to scroll rows of buttons left and right, which a nested scrollrect in it.
New: IUITableViewFlickable/IUITableViewMagneticAlignment, Improvement:IUITableViewDraggable
New: IUITableViewFlickable : For detecting flick
New: IUITableViewMagneticAlignment : For snapping scroll
Imporvement: IUITableViewDraggable
Hotfix: Pass cellIndex NOT rowIndex to LengthForCellInTableView in IUIGridViewDataSource
・Fixed: Pass cellIndex NOT rowIndex to LengthForCellInTableView in IUIGridViewDataSource
Backward compatible with c# 7.3 for who using Unity 2018/2019
・New: Add BottomToTop and LeftToRight to UITableViewDirection #15
・Fixed: When a non-central value is set as the anchor for the cell, the position calculation becomes inaccurate. #5
・Fixed: ReloadCells maybe called twice.
・Other: Change Script Runtime Version to .NET 4.6 equivalent if using Unity 2018/2019
Fixed:ReloadCells maybe called twice. / UITableViewCellAlignment.Center not works in grid.
・Fixed:ReloadCells maybe called twice.
・Fixed:UITableViewCellAlignment.Center not works when using AlignmentOfCellsAtLastRow() in grid.
New Features : Add BottomToTop and LeftToRight to UITableViewDirection
New Features : Now you can put different number of columns into different rows
New Features : IUITableViewClickable and IUITableViewDraggable
This will be convenient if you want to drag or click on the UITableViewCell. Less code and without any callbacks.
Like this:https://github.com/zhaozilong1988/UITableViewForUnity/blob/master/sample_grid_drag.gif
v1.1 Add some convenience methods
The methods below are added.
public T ReuseOrCreateCell(string reuseIdentifier, T prefab, UITableViewCellLifeCycle lifeCycle = UITableViewCellLifeCycle.RecycleWhenDisappeared, bool isAutoResize = true) where T : UITableViewCell
With this method, you can create multiple different prefabs with only one UITableViewCell class by use your own reuse identifier.
public bool TryGetLoadedCell(int index, out T result) where T : UITableViewCell
Use this method instead if you want to avoid exceptions of the method below.
public T GetLoadedCell(int index) where T : UITableViewCell
public IEnumerable GetAllLoadedCells(Func<int, bool> condition) where T : UITableViewCell
Return all appearing cells and those whose UITableViewCellLifeCycle is set to RecycleWhenReloaded where condition returns true.