AddItem<T>(TreeViewItemData<T>, int, int, bool)
Adds an item to the existing tree.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public void AddItem<T>(TreeViewItemData<T> item, int parentId = -1, int childIndex = -1, bool rebuildTree = true)
Parameters
Item to add.
The parent id for the item.
The child index in the parent's children list.
Whether we should call RebuildTree and RefreshItems or not. Set to false when doing multiple additions to save a few rebuilds.