Hi everyone,
I’m writing some automation tools to let our artists mass edit asset properties that are not available in the Bulk Editor, like a MaterialInstance’s Parent Material.
I can iterate through a list of selected assets, and also through all assets of type given a folder path, but I can’t figure out how to automatically retrieve the folder path of the currently selected folder from the Content Browser.
In “ContentBrowserDelegates.h” there is this delegate:
/** Called when a path is selected in the path picker */
DECLARE_DELEGATE_OneParam(FOnPathSelected, const FString& /*Path*/);
Subscribe to that event.
Whenever user selects a folder it will return to your subscribed function path to the folder selected.
The problem with that is the delegate instance “OnPathSelected” is within a struct called “FPathPickerConfig” then only way to get a config is declaring your own to then pass it as a reference to: