private void RefreshUIElementsDatabase(bool forceRefresh = false) { if (DUI.UIElementsDatabase == null || forceRefresh) { EditorUtility.DisplayProgressBar("Reloading Data", "Refreshing the UIElements Database...", 0.5f); DUI.RefreshUIElementsDatabase(); } EditorUtility.DisplayProgressBar("Reloading Data", "Quick cleanup...", 0.75f); UIElementsDatabaseAnimBool = new Dictionary <string, AnimBool>(); foreach (string category in DUI.UIElementsDatabase.Keys) { DUI.UIElementsDatabase[category].RemoveEmpty(); DUI.UIElementsDatabase[category].Sort(); UIElementsDatabaseAnimBool.Add(category, new AnimBool(false)); } EditorUtility.ClearProgressBar(); }