SetExpanded
Set a single TreeViewItem to be expanded or collapsed.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor
SetExpanded(T, bool)
Set a single TreeViewItem to be expanded or collapsed.
public bool SetExpanded(TIdentifier id, bool expanded)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if item changed expanded state, false if item already had the |
SetExpanded(IList<T>)
Set the current expanded TreeViewItems of the TreeView. This will overwrite the previous expanded state.
public void SetExpanded(IList<TIdentifier> ids)
Parameters
List of item IDs that should be expanded.