FMenuBuilder::AddSubMenu

Adds a sub-menu which is a menu within a 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 AddSubMenu
(
    const TAttribute< FText > & InMenuLabel,
    const TAttribute< FText > & InToolTip,
    const FNewMenuDelegate & InSubMenu,
    const FUIAction & InUIAction,
    FName InExtensionHook,
    const EUserInterfaceActionType InUserInterfaceActionType,
    const bool bInOpenSubMenuOnClick,
    const FSlateIcon & InIcon,
    const bool bInShouldCloseWindowAfterMenuSelection
)

Remarks

Adds a sub-menu which is a menu within a menu

Parameters

Parameter

Description

InMenuLabel

The text that should be shown for the menu

InToolTip

The tooltip that should be shown when the menu is hovered over

InSubMenu

Sub-Menu object which creates menu entries for the sub-menu

InUIAction

Actions to execute on this menu item.

InExtensionHook

The section hook. Can be NAME_None

InUserInterfaceActionType

Type of interface action

bInOpenSubMenuOnClick

Sub-menu will open only if the sub-menu entry is clicked

InIcon

The icon to use

bInShouldCloseWindowAfterMenuSelection

Whether the submenu should close after an item is selected

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