Publisher | XBB publisher |
---|---|
File size | 31.17kB |
Number of files | 23 |
Latest version | 1 |
Latest release date | 2019-03-26 11:18:09 |
First release date | 2019-03-26 11:18:09 |
Supported Unity versions | 2018.4.2 or higher |
Solve GC and CPU consumption caused by multiple Instantiate and Destroy in UGUI-ScrollView.
--Component: XGridLayoutGroup--
This is a variant of GridLayout.It is not allowed to modify the size of the cell.
--How to use it?--
·Add XGridLayoutGroup to the Content of ScrollRect.
·Change custom properties.
·Call XGridLayoutGroup.SetInitData(int totalSize, XLayoutEvents layevents);
·Call XGridLayoutGroup.BeginUpdate(bool forceUpdate);
--Component: XVerticalLayoutGroup--
This is a extension of VerticalLayoutGroup. It allow change cell size.
--How to use it?--
·Add XVerticalLayoutGroup to the Content of ScrollRect.
·Change custom properties.
·Call XLayoutGroup.SetInitData(int cellSize, int totalSize, XLayoutEvents layevents);
--How to change cell size?--
·Call XLayoutGroup.ChangeCellSize(int index, float newSize).It will re-calculate cell size immediately.
--Component: XHorizontalLayoutGroup--
This is a extension of HorizontalLayoutGroup. It allow change cell size.
--How to use it?--
·Add XHorizontalLayoutGroup to the Content of ScrollRect.
·Change custom properties.
·Call XLayoutGroup.SetInitData(int cellSize, int totalSize, XLayoutEvents layevents);
--How to change cell size?--
·Call XLayoutGroup.ChangeCellSize(int index, float newSize).It will re-calculate cell size immediately.