文档

Unity Engine

Unity Engine

CollapseItem(int, bool, bool)

Collapses the item with the specified ID, hiding its children. Allows to collapse the whole hierarchy under that item.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void CollapseItem(int id, bool collapseAllChildren, bool refresh = true)

Parameters

id

The item ID.

collapseAllChildren

Whether the whole hierarchy under that item will be collapsed.

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.