GridParams Class |
Base class for params to beused with a GridAdapterTParams, TCellVH
Namespace: frame8.ScrollRectItemsAdapter.Util.GridView
[SerializableAttribute] public class GridParams : BaseParams
The GridParams type exposes the following members.
| Name | Description | |
|---|---|---|
| GridParams |
| Name | Description | |
|---|---|---|
| CreateCellGroupPrefab | ||
| GetGroupHeight | Similar to GetGroupWidth | |
| GetGroupIndex | ||
| GetGroupPrefab | Returns the prefab to use as LayoutGroup for the group with index forGroupAtThisIndex | |
| GetGroupWidth | Approximates the group width using the provided padding, spacing, cell prefab's width, and the NumCellsPerGroupHorizontally | |
| GetNumberOfRequiredGroups | ||
| InitIfNeeded |
Called internally in Init and every time the scrollview's size changes.
This makes sure the content and viewport have valid values. It can also be overridden to initialize custom data
(Overrides BaseParamsInitIfNeeded(ISRIA).) | |
| InitNonSerializedData | ||
| OnAfterDeserialize | ||
| OnBeforeSerialize |
| Name | Description | |
|---|---|---|
| alignmentOfCellsInGroup | The alignment of cells inside their parent LayoutGroup (Vertical or Horizontal, depending on ScrollView's orientation) | |
| cellHeightForceExpandInGroup | Wether to force the cells to expand in height inside their parent LayoutGroup | |
| cellPrefab | The prefab to use for each cell | |
| cellWidthForceExpandInGroup | Wether to force the cells to expand in width inside their parent LayoutGroup | |
| groupPadding | The padding of cells as a whole inside their parent LayoutGroup | |
| numCellsPerGroup | The max. number of cells in a row (for vertical ScrollView) or column (for horizontal ScrollView) |