Unity Engine documentationScript ReferenceUnityEngineUnityEngine.UIElementsBaseTreeViewControllerCollapseAll()Collapses all items in the tree and refreshes the view.阅读时间1 分钟最后更新于 1 个月前Definition Type: Method Namespace: UnityEngine.UIElements Assembly: UnityEngine.UIElementsModule public void CollapseAll()