文档

Unity Engine


Unity Engine


ExpandItemByIndex(int, bool, bool)

Expands the item with the specified index, making his children visible. Allows to expand the whole hierarchy under that item.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void ExpandItemByIndex(int index, bool expandAllChildren, bool refresh = true)

Parameters

index

The item index.

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.