Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ExpandItem(int, bool, bool)

Expands the specified TreeView item.
Read time 1 minuteLast updated 4 days ago

Definition

public void ExpandItem(int id, bool expandAllChildren = false, bool refresh = true)

Parameters

id

The TreeView item identifier.

expandAllChildren

When true, all children will also get expanded. This is false by default.

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.