Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ExpandItem(int, bool, bool)

Expands the item with the specified ID, making its children visible. Allows to expand the whole hierarchy under that item.
Read time 1 minuteLast updated 10 days ago

Definition

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

Parameters

id

The item ID.

expandAllChildren

Whether the whole hierarchy under that item will be expanded.

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.