I’m trying to extend AnimNotify menu in animation editor. I have created menu extender and added it to Persona module, but new menu entry is not displayed.
FPersonaModule& PersonaModule = FModuleManager::LoadModuleChecked<FPersonaModule>("Persona");
TSharedPtr<FExtender> Extender = MakeShareable(new FExtender);
Extender->AddMenuExtension("AnimNotify", EExtensionHook::After, ModuleCommands, FMenuExtensionDelegate::CreateRaw(this, &FTEEditorModule::AddMenuEntry));
PersonaModule.GetMenuExtensibilityManager()->AddExtender(Extender);
After investigation I found the problem, when editor builds this context menu in SAnimNotifyTrack::SummonContextMenu
it doesn’t use extenders FMenuBuilder MenuBuilder( bCloseWindowAfterMenuSelection, AnimSequenceEditorActions );
. Third parameter in menu builder constructor is optional, and for this particular cotext menu it is not set.
So, the question is, is this intended and AnimNotify context menu is not supposed to be extended, or someone forgot to use extenedrs and this is a bug?