ExpandItem(int, bool, bool)
Expands the specified TreeView item.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public void ExpandItem(int id, bool expandAllChildren = false, bool refresh = true)
Parameters
The TreeView item identifier.
When true, all children will also get expanded. This is false by default.
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.