This version of Unity is unsupported.

BaseTreeView.CollapseItem

Declaration

public void CollapseItem(int id, bool collapseAllChildren);

Parameters

id The TreeView item identifier.
collapseAllChildren When true, all children will also get collapsed. This is false by default.

Description

Collapses the specified TreeView item.