기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


CollapseItemByIndex(int, bool, bool)

Collapses the item with the specified index, hiding its children. Allows to collapse the whole hierarchy under that item.
읽는 시간 1분최근 업데이트: 23일 전

Definition

public void CollapseItemByIndex(int index, bool collapseAllChildren, bool refresh = true)

Parameters

index

The item index.

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. This is true by default.