- 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]
The slate windows get close after the subsystems are deinitilaized so we need to be carefull with those in the content browser widget code. Some binding can still be queried while processing some defered windows event during the closing of the slate application.
#jira UE-189606
#rb JeanLuc.Corenthin
[CL 26615347 by julien stjean in ue5-main branch]
* Plugins that only contain cooked content (and have no C++ modules) no longer show their "Content" suffix.
* Folders that only contain private cooked content are no longer visible in the asset or path views.
#preflight 642f2e3cb306e98c632f0195
#rb Jason.Stasik, Aditya.RaviChandran
[CL 24994922 by jamie dale in ue5-main branch]
The EditorConfig argument was being passed to SPathView as a raw pointer, but opening a new Content Browser tab or opening the drawer could cause the config array to be resized and invalidate the pointer.
Instead, the content browser instance name is now passed to SPathView and the config is looked up each time.
#rb aditya.ravichandran
#jira UE-175926
#preflight 63e24fb49910415ae2f603f5
#lockdown jeanmichel.dignard
[CL 24053956 by sebastian nordgren in ue5-main branch]
These are currently used to display the asset that are hidden by a backend class permission system.
They can also be restricted to some path only if desired.
Note: We will do a UX pass for the unsupported items after this is submitted and later we will also add some support for the unsupported asset to the alias data source.
#preflight 63dc23a7175a9839ac4cf474
#rb Jason.Stasik
[CL 24007061 by julien stjean in ue5-main branch]
Selecting a content browser path now triggers an editor config save.
Added icon to Lock/Unlock Content Browser setting.
#review-23772163 @aditya.ravichandran
#preflight 63c94681b065224750208da9
[CL 23773172 by sebastian nordgren in ue5-main branch]
Removed CollectionsDocked setting, since it wasn't bound to any toggle anywhere.
Removed sources widget switcher which was untoggleable.
#jira UE-173851
#review-23661236 @editor-ux
#preflight 63c00acc4b018bfa800fbebc
[CL 23662444 by sebastian nordgren in ue5-main branch]
There are a few settings here that we use in places where it's ambiguous which content browser instance is triggering the change, and those have not been transferred over. A few settings also appear to now be unused, and those have also not been transferred.
Additionally, set the SetDisplayDeveloperFolder(bool, bool) functions which took an override variable have been deprecated, and the overrides moved to SAssetView variables directly - these were used after syncing content to temporarily override filters and weren't persisted.
Tested across 2 Content Browsers, toggling all settings enabled on one, and all setting disabled on the other, and checking that the settings persist across restarts of the editor.
#jira UE-150674
#review-23434533 @editor-ux
#preflight 63bd773868068a8bd64ea317
[CL 23626453 by sebastian nordgren in ue5-main branch]
#rb Stanley.Hayes
#rb Jamie.Dale
#rb Jason.Stasik
#rb Yiliang.Siew
#preflight 635205e49e14ee3c7969c9bf
Iteration on Jason Stasiks CL 17314610. This is a minimal version of CL 17314610 which adds a 'view' method to AssetTypeActions which is now attempted whenever an activated item's 'edit' attempt fails.
The matching CL for the restricted FAssetTypeActions_VerseClass changes is 22472079.
[CL 22823595 by jared cotton in ue5-main branch]
[FYI] jared.cotton
Original CL Desc
-----------------------------------------------------------------
Addition of 'view' method to AssetTypeActions
#rb Stanley.Hayes
#rb Jamie.Dale
#rb Jason.Stasik
#rb Yiliang.Siew
#preflight 635205e49e14ee3c7969c9bf
Iteration on Jason Stasiks CL 17314610. This is a minimal version of CL 17314610 which adds a 'view' method to AssetTypeActions which is now attempted whenever an activated item's 'edit' attempt fails.
The matching CL for the restricted FAssetTypeActions_VerseClass changes is 22472079.
[CL 22803476 by bob tellez in ue5-main branch]