Unity - Scripting API: IMGUI.Controls.TreeView_1.SetExpandedRecursive
TreeView<T0>.SetExpandedRecursive
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public void SetExpandedRecursive(TIdentifier id, bool expanded);
Parameters
| Parameter | Description |
|---|---|
| id | TreeViewItem ID. |
| expanded | Expanded state: true expands, false collapses. |
Description
Expand or collapse all items under item with id.
This is also used internally when Alt/Option + clicking an foldout arrow of an item to expand/collapse the entire sub-tree under this item.