You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Removed unused function - Added 'FX' asset type category for Niagara purposes that maps to the FX asset category path for default expansion purposes - Restored functionality for default filter category expansion. This code seemed abandoned. The category expansion could be specified in the asset picker config, but in the end was ignored and the Basic asset path was used instead. This uses a Convert function to go from AssetTypeCategory -> AssetCategoryPath. There is no 1:1 mapping, so it falls back to Basic if necessary. Changing the type in the asset picker config would be cleaner, but isn't straight forward due to FAssetCategoryPath needing to be exposed to all modules that include the content browser module - Tweaked OnExtendAddFilterMenu delegate. It's now a global delegate, making it unnecessary to handle template shenanigans to access it. AssetPickerConfig has a new option to provide this OnExtendAddFilterMenu externally. As the 'Common' category still shows up if we expand the FX category (since Niagara System is part of Basic & FX), we can use this to remove unwanted filters The delegate is called on the dynamic menu section before the widget generation - Added PinAllFrontendFilters argument. This is useful if you have a small amount of filters available so that you want to display them all by default Big code cleanup: - MakeAddFilterMenu is now marked as final to help with API consistency. - Added new 'CreateAssetFilterBarContext` virtual function. This is now the unified way of configuring your menu. - The context now contains the FOnFilterAssetType delegate, and the OnExtendAddFilterMenu delegate. This allows subclasses to keep their original functionality, while having a central place to tweak it - Removed the old content browser context as it's no longer used - Exposed the menu name. Kept old names consistent. This allows to reuse menus, or create new ones. - Moved the right click context filter UI of the content browser into the SAssetFilterBar. Now all SAssetFilterBars can do this. Removed the OnGetContextMenu delegate that was only used in one place - Removed various functions that are no longer needed #rb rex.hill, aditya.ravichandran #ushell-cherrypick of 28538117 by Mateo.Egey [CL 28705843 by mateo egey in ue5-main branch]