ScrollElement
A class in Root.Township, the global namespace.
Base for an item in a scrolling list that is shown or hidden by index.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour - Derived types
CategoryScrollElement,CosmeticScrollElement
Constructors
| Member | What it is |
|---|---|
ScrollElement() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Properties
| Member | What it is |
|---|---|
int Index { get; private set; } | The list index it was last shown for. |
bool IsShown { get; protected set; } | True while shown. |
Methods
| Member | What it is |
|---|---|
virtual void Hide() | Hides the element. |
virtual async void Show(int index) | Shows the element for a list index. |
Used in
Members of other types that take, return or hold a ScrollElement: