Skip to main content

UIList

An abstract class in Root.Township, Alta.Meta.UI.

Base for a list of elements in the game's world-space menus. Subclasses decide how elements are laid out.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
virtual float CurrentValue { get; set; }The list's current value, such as a scroll position. Meaning depends on the subclass.
List<ListElement> Elements { get; }The elements in the list.

Methods​

MemberWhat it is
abstract void AddElement(ListElement element)Adds an element to the list. Implemented by each list type.
virtual void ClearList(bool isDestroyingElements = false)Empties the list, optionally destroying the element objects.
virtual void CompleteReset(IEnumerable<ListElement> newElements, bool isDestroyingElements = false)Clears the list and adds the given elements.
virtual void RemoveElement(ListElement element)Removes an element from the list and destroys it.

Used in​

Members of other types that take, return or hold a UIList: