ドキュメント

Unity Engine

Unity Engine

AddItem<T>(TreeViewItemData<T>, int, int, bool)

Adds an item to the existing tree.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public void AddItem<T>(TreeViewItemData<T> item, int parentId = -1, int childIndex = -1, bool rebuildTree = true)

Parameters

Item to add.

parentId

The parent id for the item.

childIndex

The child index in the parent's children list.

rebuildTree

Whether we should call RebuildTree and RefreshItems or not. Set to false when doing multiple additions to save a few rebuilds.