PittVital
(PitVital)
September 6, 2022, 5:04pm
1
Hi,
I am currently creating an editor tool and I am looking for a way to catch this moment when an asset is created from the context menu.
I have tried using FEditorDelegates::OnNewAssetCreated
, which is great for me for getting the type of asset and whatnot, but I need to get the name the user has input after the asset is created.
Any help would be great!
Thanks!
PittVital
(PitVital)
September 8, 2022, 12:58pm
2
For posterity,
I was able to find a delegate using:
FAssetRegistryModule
Using this line:
const FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>(TEXT("AssetRegistry"));
I could then access the delegate:
OnAssetAdded()
This delegate seems to fire off whenever an asset is renamed or added to the registry, perfect for my needs.