void BottomToolBar(Rect rect) { GUILayout.BeginArea(rect); using (new EditorGUILayout.VerticalScope()) { using (new EditorGUILayout.HorizontalScope()) { var style = "miniButton"; if (GUILayout.Button("Expand Exported", style)) { Reset(); m_TreeView.ExpandExported(); } if (GUILayout.Button("Expand All", style)) { Reset(); m_TreeView.ExpandAll(); } if (GUILayout.Button("Collapse All", style)) { Reset(); m_TreeView.CollapseAll(); } } EditorGUILayout.Space(); using (new EditorGUILayout.HorizontalScope()) { var style = "miniButton"; if (GUILayout.Button("Uncheck All", style)) { if (EditorUtility.DisplayDialog("警告", "所有文件夹导出AB包设置都将被清除,确定吗?", "确定", "取消")) { Reset(); m_TreeView.UnExportAll(); } } if (GUILayout.Button("Reset All", style)) { if (EditorUtility.DisplayDialog("警告", "所有形式(自定义、文件夹)导出AB包设置都将被清除,确定吗?", "确定", "取消")) { string[] abNames = AssetDatabase.GetAllAssetBundleNames(); for (int i = 0; i < abNames.Length; i++) { AssetDatabase.RemoveAssetBundleName(abNames[i], true); } Reset(); m_TreeView.ReloadData(); AssetBundleBrowserMain.instance.FreshManageTab(); } } if (GUILayout.Button("Clear Custom", style)) { if (EditorUtility.DisplayDialog("警告", "所有自定义的AB包设置都将被清除,确定吗?", "确定", "取消")) { Reset(); m_TreeView.ClearCustom(); } } } } GUILayout.EndArea(); }