CellViewsHolder Class |
Namespace: Com.ForbiddenByte.OSA.CustomAdapters.GridView
public abstract class CellViewsHolder : AbstractViewsHolder
The CellViewsHolder type exposes the following members.
Name | Description | |
---|---|---|
CellViewsHolder |
Name | Description | |
---|---|---|
CollectViews | (Overrides AbstractViewsHolderCollectViews.) | |
GetViews | Provide the cell's child GameObject that contains its views | |
Init | Cannot be used. Throws InvalidOperationException. Use InitWithExistingRootPrefab(RectTransform) instead (Overrides AbstractViewsHolderInit(GameObject, Int32, Boolean, Boolean).) | |
InitWithExistingRootPrefab | Assigns the root, sets ItemIndex to -1 and calls CollectViews. Note that this uses an already-instantiated cell root (by the parent group), as opposed to how Init(GameObject, Int32, Boolean, Boolean) works. This is because the group itself manages its cells and their layouting | |
MarkForRebuild |
Make sure to override this when you have children layouts (for example, a [Vertical/Horizontal/Grid]LayoutGroup) and call MarkLayoutForRebuild(RectTransform) for them. Base's implementation should still be called!
(Overrides AbstractViewsHolderMarkForRebuild.) |
Name | Description | |
---|---|---|
rootLayoutElement | ||
views | The child containing the views, which will be enabled/disabled depending on the layout rules |