FExtender::AddToolBarExtension

Extends a tool bar at the specified extension point

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 > AddToolBarExtension
(
    FName ExtensionHook,
    EExtensionHook::Position HookPosition,
    const TSharedPtr< FUICommandList > & CommandList,
    const FToolBarExtensionDelegate & ToolBarExtensionDelegate
)

Remarks

Extends a tool 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 toolbar items you'll be extending the menu with

ToolbarExtensionDelegate

Called to populate the part of the toolbar 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
Cancel