BaseTreeViewController
class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from CollectionViewController
In Tassix
A tree view's items: ids, parents and children, depth, expanding, moving and removing.
Methods 28
virtual bool CanChangeExpandedState(int id)Whether an item may expand or collapse (any item may, as in Unity).
void CollapseAll()void CollapseItem(int id, bool collapseAllChildren, bool refresh = true)void CollapseItemByIndex(int index, bool collapseAllChildren, bool refresh = true)bool Exists(int id)void ExpandAll()void ExpandItem(int id, bool expandAllChildren, bool refresh = true)void ExpandItemByIndex(int index, bool expandAllChildren, bool refresh = true)virtual IEnumerable<int> GetAllItemIds(IEnumerable<int>? rootIds = null)Each root's children, then the root (as Unity's lists them; deeper items aren't).
int GetChildIndexForId(int id)virtual IEnumerable<int> GetChildrenIds(int id)IEnumerable<int> GetChildrenIdsByIndex(int index)int GetIdForIndex(int index)int GetIndentationDepth(int id)int GetIndentationDepthByIndex(int index)int GetIndexForId(int id)object? GetItemForId(int id)object? GetItemForIndex(int index)virtual int GetParentId(int id)IEnumerable<int> GetRootItemIds()virtual int GetTreeItemsCount()virtual bool HasChildren(int id)bool HasChildrenByIndex(int index)bool IsExpanded(int id)bool IsExpandedByIndex(int index)virtual void Move(int id, int newParentId, int childIndex = -1, bool rebuildTree = true)void RebuildTree()virtual bool TryRemoveItem(int id, bool rebuildTree = true)Not in Tassix yet 1
Finalize