From 5acdff02cc05446abb34bf7acec6d354ba7c99e7 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 14 Apr 2024 20:39:15 -0500 Subject: [PATCH] Add sorting search actor toolbox --- Source/Editor/Windows/ToolboxWindow.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Editor/Windows/ToolboxWindow.cs b/Source/Editor/Windows/ToolboxWindow.cs index 792597eed..ab9c218c5 100644 --- a/Source/Editor/Windows/ToolboxWindow.cs +++ b/Source/Editor/Windows/ToolboxWindow.cs @@ -236,6 +236,7 @@ namespace FlaxEditor.Windows group.AddChild(string.IsNullOrEmpty(attribute.Name) ? CreateActorItem(Utilities.Utils.GetPropertyNameUI(actorType.Name), actorType) : CreateActorItem(attribute.Name, actorType)); group.SortChildren(); } + _groupSearch.SortChildren(); } private void OnSearchBoxTextChanged() @@ -283,6 +284,9 @@ namespace FlaxEditor.Windows } item.SetHighlights(highlights); } + + if (string.IsNullOrEmpty(filterText)) + _groupSearch.SortChildren(); _groupSearch.UnlockChildrenRecursive(); PerformLayout();