Beispiel #1
0
 private void BottomToolBar(Rect rect)
 {
     GUILayout.BeginArea(rect);
     using (new EditorGUILayout.HorizontalScope()) {
         GUIStyle style = "miniButton";
         if (GUILayout.Button("Expand All", style))
         {
             _treeView.ExpandAll();
         }
         if (GUILayout.Button("Collapse All", style))
         {
             _treeView.CollapseAll();
         }
         GUILayout.FlexibleSpace();
         GUILayout.Label(Cache.FolderTree != null
             ? AssetDatabase.GetAssetPath(Cache.FolderTree)
             : string.Empty);
         GUILayout.FlexibleSpace();
     }
     GUILayout.EndArea();
 }