Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/MultiBox > API/Runtime/Slate/Framework/MultiBox/FToolBarBuilder > API/Runtime/Slate/Framework/MultiBox/FToolBarBuilder/AddWidget
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 |
void AddWidget
(
TSharedRef < SWidget > InWidget,
const FMenuEntryStyleParams & InStyleParams,
FName InTutorialHighlightName,
bool bInSearchable,
FNewMenuDelegate InCustomMenuDelegate,
TAttribute < EVisibility > InVisibilityOverride
)
Remarks
Adds any widget to the toolbar
Parameters
| Name | Description |
|---|---|
| InWidget | The widget that should be shown in the toolbar |
| InStyleParams | Style parameters for the widget inside the toolbar |
| InTutorialHighlightName | Name to identify this widget and highlight during tutorials |
| bInSearchable | If true, widget will be searchable (default == true) |
| InCustomMenuDelegate | Optional custom menu delegate for cases where the toolbar is compressed into a menu |
| InVisibilityOverride | Optional visibility override which, if set and returning anything but Visible, overrides the visibility of the widget. |