This version of Unity is unsupported.

BaseTreeViewController.CollapseItem

Declaration

public void CollapseItem(int id, bool collapseAllChildren);

Parameters

id The item ID.
collapseAllChildren Whether the whole hierarchy under that item will be collapsed.

Description

Collapses the item with the specified ID, hiding its children. Allows to collapse the whole hierarchy under that item.