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.
- Listed in Menus, UI and platforms
- Inherits or implements
MonoBehaviour - Derived types
RopeUIList,SimpleUIList
Constructors
| Member | What it is |
|---|---|
protected UIList() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
Properties
| Member | What 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
| Member | What 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:
FriendsInvitesPanel.uiList, FriendsListPanel.uiList, FriendsRequestsPanel.uiList, GroupMembersPage.uiList, InboxPanel.uiList, IncomingGroupRequestPage.uiList, InviteUserToGroupPanel.uiList, InviteUserToGroupViaFriendsPanel.uiList, JoinedGroupsList.uiList, OculusFriendsListPanel.uiList, OutgoingGroupInvitesPage.uiList, RecentPlayersListPanel.uiList, ReportsPanel.uiList.