FExtender::AddMenuBarExtension

Extends a menu bar at the specified extension point

Windows
MacOS
Linux

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

Syntax

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

Returns

Pointer to the new extension object. You can use this later to remove the extension.

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss