Hi
I’m currently trying to customize the data table editor in the engine code so that I can add a menu item to the ‘Asset’ drop down menu. When I run a build with the changes below the callback for the extension doesn’t get called resulting in no extra menu item.
After this in DataTableEditor.cpp:
FAssetEditorToolkit::InitAssetEditor( Mode, InitToolkitHost, FDataTableEditorModule::DataTableEditorAppIdentifier, StandaloneDefaultLayout, bCreateDefaultStandaloneMenu, bCreateDefaultToolbar, Table );
I add:
TSharedPtr MenuExtender = MakeShareable(new FExtender);
MenuExtender->AddMenuExtension("AssetEditorActions", EExtensionHook::After, GetToolkitCommands(), FMenuExtensionDelegate::CreateRaw(this, &FDataTableEditor::AddAssetMenuExtension));
AddMenuExtender(MenuExtender);
The function FDataTableEditor::AddAssetMenuExtension will add a menu section with a menu entry inside it but the function never gets called.
I’ve looked through other classes that inherit from FAssetEditorToolkit (such as Phat.cpp) to see what they do and it looks like I’m pretty much doing the same thing.
Obviously I’ve missed something.
All help will be very gratefully received!
Cheers,
Mark.