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();
     }
 }
Exemple #2
0
 void OnEnable()
 {
     _onShow = () => { m_AssetTreeView.ExpandAll(); };
 }