ドキュメント

Unity Engine

Unity Engine

ExpandItem(int, bool, bool)

Expands the item with the specified ID, making its children visible. Allows to expand the whole hierarchy under that item.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public void ExpandItem(int id, bool expandAllChildren, bool refresh = true)

Parameters

id

The item ID.

expandAllChildren

Whether the whole hierarchy under that item will be expanded.

refresh

Whether to refresh items or not. Set to false when doing multiple operations on the tree, to only do one RefreshItems once all operations are done. This is true by default.