Scripting API

BaseListViewController

class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from CollectionViewController

14 of 14 of Unity's membersUnity's documentation
In Tassix

A list view's items: adding (default values), moving and removing them in its source.

Methods 6

virtual void AddItems(int itemCount)
virtual void ClearItems()

Removes every item (telling one index fewer than it had, as Unity's does).

virtual void Move(int index, int newIndex)
virtual bool NeedsDragHandle(int index)

Whether items show a drag handle: reorderable, animated.

virtual void RemoveItem(int index)
virtual void RemoveItems(List<int> indices)

Removes items (from the last), telling the indices as given.

Events 3

event Action<IEnumerable<int>>? itemsAdded
event Action<IEnumerable<int>>? itemsRemoved
event Action? itemsSourceSizeChanged