Click or drag to resize

GridParams Class

Inheritance Hierarchy

Namespace:  frame8.ScrollRectItemsAdapter.Util.GridView
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class GridParams : BaseParams

The GridParams type exposes the following members.

Constructors
  NameDescription
Public methodGridParams
Top
Methods
  NameDescription
Protected methodCreateCellGroupPrefab
Public methodGetGroupHeight
Public methodGetGroupIndex
Public methodGetGroupPrefab
Returns the prefab to use as LayoutGroup for the group with index forGroupAtThisIndex
Public methodGetGroupWidth
Approximates the group width using the provided padding, spacing, cell prefab's width, and the NumCellsPerGroupHorizontally
Public methodGetNumberOfRequiredGroups
Public methodInitIfNeeded
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).)
Protected methodInitNonSerializedData
Public methodOnAfterDeserialize
Public methodOnBeforeSerialize
Top
Fields
  NameDescription
Public fieldalignmentOfCellsInGroup
The alignment of cells inside their parent LayoutGroup (Vertical or Horizontal, depending on ScrollView's orientation)
Public fieldcellHeightForceExpandInGroup
Wether to force the cells to expand in height inside their parent LayoutGroup
Public fieldcellPrefab
The prefab to use for each cell
Public fieldcellWidthForceExpandInGroup
Wether to force the cells to expand in width inside their parent LayoutGroup
Public fieldgroupPadding
The padding of cells as a whole inside their parent LayoutGroup
Public fieldnumCellsPerGroup
The max. number of cells in a row (for vertical ScrollView) or column (for horizontal ScrollView)
Top
Version Information

Optimized ScrollView Adapter

Supported in: 3.1, 2.5.2
See Also