FMenuBuilder::AddWidget

Adds any widget to the menu

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 AddWidget
(
    TSharedRef< SWidget > InWidget,
    const FText & Label,
    bool bNoIndent,
    bool bSearchable
)

Remarks

Adds any widget to the menu

Parameters

Parameter

Description

InWidget

The widget that should be shown in the menu

InLabel

Optional label text to be added to the left of the content

bNoIndent

If true, removes the padding from the left of the widget that lines it up with other menu items (default == false)

bSearchable

If true, widget will be searchable (default == true)

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