PackedGridExample Methods |
The PackedGridExample type exposes the following members.
| Name | Description | |
|---|---|---|
| GetNewCellGroupViewsHolder | Provide your own implementation of the group prefab, if you have a custom one. Most often than not, you won't use this (Overrides GridAdapterTParams, TCellVHGetNewCellGroupViewsHolder.) | |
| Refresh | (Overrides GridAdapterTParams, TCellVHRefresh(Boolean, Boolean).) | |
| Start | (Overrides OSATParams, TItemViewsHolderStart.) | |
| UpdateCellViewsHolder | Called when a cell becomes visible (Overrides GridAdapterTParams, TCellVHUpdateCellViewsHolder(TCellVH).) | |
| UpdateViewsHolder |
Here the grid adapter checks if new groups need to be created or if old ones need to be disabled or destroyed, after which it calls UpdateCellViewsHolder(TCellVH) for each remaining cells.
(Overrides GridAdapterTParams, TCellVHUpdateViewsHolder(CellGroupViewsHolderTCellVH).)Override it (and call the base implementation!) only if you know what you're doing. If you just want to update your cells' views, do it in UpdateCellViewsHolder(TCellVH) |