FToolBarBuilder::AddToolBarButton

Adds a tool bar button

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h

Include

#include "Framework/MultiBox/MultiBoxBuilder.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/MultiBox/MultiBoxBuilder.cpp

Syntax

void AddToolBarButton
(
    const TSharedPtr< const FUICommandInfo > InCommand,
    FName InExtensionHook,
    const TAttribute< FText > & InLabelOverride,
    const TAttribute< FText > & InToolTipOverride,
    const TAttribute< FSlateIcon > & InIconOverride,
    FName InTutorialHighlightName
)

Remarks

Adds a tool bar button

Parameters

Parameter

Description

InCommand

The command associated with this tool bar button

InLabelOverride

Optional label override. If omitted, then the action's label will be used instead.

InToolTipOverride

Optional tool tip override. If omitted, then the action's label will be used instead.

InIconOverride

Optional name of the slate brush to use for the tool bar image. If omitted, then the action's icon will be used instead.

InTutorialHighlightName

Name to identify this widget and highlight during tutorials

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