October 2016
Intermediate to advanced
452 pages
9h 47m
English
The workflow for creating new menu entries is almost identical to that for creating new toolbar buttons, so this recipe will build on the previous one, and show you how to add the command created therein to a menu rather than a toolbar.
module class:void AddMenuExtension(FMenuBuilder &builder)
{
FSlateIcon IconBrush = FSlateIcon(FEditorStyle::GetStyleSetName(), "LevelEditor.ViewOptions", "LevelEditor.ViewOptions.Small");
builder.AddMenuEntry(FCookbookCommands::Get().MyButton);
};StartupModule function:Extension = ToolbarExtender->AddToolBarExtension("Compile", EExtensionHook::Before, CommandList, FToolBarExtensionDelegate::CreateRaw(this, &FUE4CookbookEditorModule::AddToolbarExtension)); ...Read now
Unlock full access