Scripting API

BaseListView

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

37 of 38 of Unity's membersUnity's documentation
In Tassix

A list view with an empty label, a header and an add/remove footer.

Fields 18

static readonly string arraySizeFieldUssClassName
static readonly string arraySizeFieldWithFooterUssClassName
static readonly string arraySizeFieldWithHeaderUssClassName
static readonly string emptyLabelUssClassName
static readonly string foldoutHeaderUssClassName
static readonly string footerAddButtonName
static readonly string footerRemoveButtonName
static readonly string footerUssClassName
static readonly string itemUssClassName
static readonly string listViewWithFooterUssClassName
static readonly string listViewWithHeaderUssClassName
static readonly string reorderableItemContainerUssClassName
static readonly string reorderableItemHandleBarUssClassName
static readonly string reorderableItemHandleUssClassName
static readonly string reorderableItemUssClassName
static readonly string reorderableUssClassName
static readonly string scrollViewWithFooterUssClassName
static readonly string ussClassName

Properties 15

bool allowAdd { get; set; }
bool allowRemove { get; set; }
BindingSourceSelectionMode bindingSourceSelectionMode { get; set; }
string headerTitle { get; set; }
Func<VisualElement>? makeFooter { get; set; }
Func<VisualElement>? makeHeader { get; set; }
Func<VisualElement>? makeNoneElement { get; set; }
Action<BaseListView>? onAdd { get; set; }
Action<BaseListView>? onRemove { get; set; }
Action<BaseListView, Button>? overridingAddButtonBehavior { get; set; }
ListViewReorderMode reorderMode { get; set; }

Animated: items get a drag handle; simple: they're dragged themselves.

bool showAddRemoveFooter { get; set; }

A footer with + (add) and - (remove) buttons.

bool showBoundCollectionSize { get; set; }

The size field next to the foldout header (when the header shows).

bool showFoldoutHeader { get; set; }

The list inside a foldout titled headerTitle.

BaseListViewController viewController { get; }

Events 2

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

Not in Tassix yet 1

overMaxMultiEditLimitClassName