Is there any way to sort the objects show in the dropdown for a UObject* UPROPERTY?
I know we can filter objects like so:
https://dev.epicgames.com/community/learning/knowledge-base/R8jv/unreal-engine-creating-filtered-object-pickers
but I’m wondering if there is a better way. It would be great to show the most recently edited objects at the top of the list.
The call stack where this is controlled seems to be:
But we have no access to the array that is used to display available assets.
SAssetView::RefreshSourceItems() UContentBrowserDataSubsystem::GetItemsUnderPath UContentBrowserDataSubsystem::EnumerateItemsMatchingFilter ContentBrowserAssetData::CreateAssetFileItem
Steps to Reproduce
When selecting a uproperty dropdown for a uobject* that has thousands of uassets, it can become very cumbersome to find the correct object. It would be great to be able to sort this dropdown array.
Hello Steven!
Thank you for bringing this up! There is some in-depth work coming up for pickers in a future release and I will create an internal ticket so that we can take a look at this during that initiative!
For now, I think it might be a good idea to look at the AssetEditorSubsystem as it contains utilities that may be able to help if you want to create a separate tool; but currently, only the filters will really be able to affect the picker/dropdown itself.
Cheers!
Jayden
Got it! thank you for the answer. I’ll keep an eye out for future updates to these systems.