protected void DrawToolbarExpandCollapse() { if (GUILayout.Button(AssetDanshariStyle.Get().expandAll, EditorStyles.toolbarButton, GUILayout.Width(50f))) { m_AssetTreeView.ExpandAll(); } if (GUILayout.Button(AssetDanshariStyle.Get().collapseAll, EditorStyles.toolbarButton, GUILayout.Width(50f))) { m_AssetTreeView.CollapseAll(); } }
void OnEnable() { _onShow = () => { m_AssetTreeView.ExpandAll(); }; }