Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/MultiBox > API/Runtime/Slate/Framework/MultiBox/FExtender
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxExtender.h |
| Include | #include "Framework/MultiBox/MultiBoxExtender.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/MultiBox/MultiBoxExtender.cpp |
TSharedRef < const FExtensionBase > AddMenuBarExtension
(
FName ExtensionHook,
EExtensionHook::Position HookPosition,
const TSharedPtr < FUICommandList > & CommandList,
const FMenuBarExtensionDelegate & MenuBarExtensionDelegate
)
Remarks
Extends a menu bar at the specified extension point Pointer to the new extension object. You can use this later to remove the extension.
Parameters
| Name | Description |
|---|---|
| ExtensionHook | Part of the menu to extend. You can extend the same point multiple times, and extensions will be applied in the order they were registered. |
| HookPosition | Where to apply hooks in relation to the extension hook |
| CommandList | The UI command list responsible for handling actions for the menu items you'll be extending the menu with |
| MenuExtensionDelegate | Called to populate the part of the menu you're extending |