Skip to main content

ScrollElement

A class in Root.Township, the global namespace.

Base for an item in a scrolling list that is shown or hidden by index.

Constructors​

MemberWhat it is
ScrollElement()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Properties​

MemberWhat it is
int Index { get; private set; }The list index it was last shown for.
bool IsShown { get; protected set; }True while shown.

Methods​

MemberWhat 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: