I am trying to extend the content browser menu system. After reading several tutorials and spending a couple days digging through the UE4 source I’ve narrowed my issue down to this…
I must convert from the FExtender object to this FContentBrowserMenuExtender in order to add it into the array. But I cannot figure out how to make that conversion. Any help would be greatly appreciated.
TSharedPtr<FExtender> HTImportExtender = MakeShareable(new FExtender);
HTImportExtender->AddMenuExtension("ContentBrowserImportAsset", EExtensionHook::After, NULL, FMenuExtensionDelegate::CreateStatic(&ImportMenuExtender::AddExtension));
FContentBrowserModule& ContentBrowserModule = FModuleManager::LoadModuleChecked<FContentBrowserModule>("ContentBrowser");
TArray<FContentBrowserMenuExtender> CBMenuExtenderDelegates = ContentBrowserModule.GetAllAssetContextMenuExtenders();
CBMenuExtenderDelegates.Add(FContentBrowserMenuExtender::BindSP(HTImportExtender));
Note the BindSP Call here does not work.