Add sorting search actor toolbox

This commit is contained in:
Chandler Cox
2024-04-14 20:39:15 -05:00
parent d2508ad902
commit 5acdff02cc

View File

@@ -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()
@@ -284,6 +285,9 @@ namespace FlaxEditor.Windows
item.SetHighlights(highlights);
}
if (string.IsNullOrEmpty(filterText))
_groupSearch.SortChildren();
_groupSearch.UnlockChildrenRecursive();
PerformLayout();
PerformLayout();