CAbstractViewsHolder Class |
Namespace: Com.ForbiddenByte.OSA.Classic
public abstract class CAbstractViewsHolder
The CAbstractViewsHolder type exposes the following members.
Name | Description | |
---|---|---|
CAbstractViewsHolder |
Name | Description | |
---|---|---|
ItemIndex | The index of the data model from which this viewsholder's views take their display information |
Name | Description | |
---|---|---|
CollectViews | If instead of calling Init(GameObject, Int32, Boolean, Boolean), the initializaton is done manually, this should be called lastly as part of the initialization phase | |
Init(GameObject, Int32, Boolean, Boolean) |
Instantiates rootPrefabGO, assigns it to root and sets its itemIndex to itemIndex.
Activates the new instance if activateRootGameObject is true. Also calls CollectViews if callCollectViews is true
| |
Init(RectTransform, Int32, Boolean, Boolean) | ||
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!
|