This version of Unity is unsupported.

BaseTreeViewController.CollapseItemByIndex

Declaration

public void CollapseItemByIndex(int index, bool collapseAllChildren);

Parameters

index The item index.
collapseAllChildren Whether or not to collapse the whole hierarchy under that item.

Description

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