Module |
|
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 > AddMenuExtension
(
FName ExtensionHook,
EExtensionHook::Position HookPosition,
const TSharedPtr< FUICommandList > & CommandList,
const FMenuExtensionDelegate & MenuExtensionDelegate
)
Extends a menu at the specified extension point
Pointer to the new extension object. You can use this later to remove the extension.
Parameter |
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 |