LayoutExtensions
XBB publisher
$10.00
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
03/26(2019) |
10.0 |
11/21(2024) |
10.0 |
Jump AssetStore
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.