SSubMenuHandler::RequestSubMenuToggle

Requests that the sub-menu associated with this widget be toggled on or off.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/SSubMenuHandler.h

Include

#include "Widgets/Input/SSubMenuHandler.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Input/SSubMenuHandler.cpp

Syntax

void RequestSubMenuToggle
(
    bool bOpenMenu,
    const bool bClobber,
    const bool bImmediate
)

Remarks

Requests that the sub-menu associated with this widget be toggled on or off. It does not immediately toggle the menu. After a set amount of time is passed the menu will toggle

Parameters

Parameter

Description

bOpenMenu

true to open the menu, false to close the menu if one is currently open

bClobber

true if we want to open a menu when another menu is already open

const

bool bImmediate Default false, when true the menu will open immediately

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