FSlateApplication::DismissMenuByWidget

Dismisses a menu and all its children.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp

Syntax

void DismissMenuByWidget
(
    const TSharedRef< SWidget > & InWidgetInMenu
)

Remarks

Dismisses a menu and all its children. The menu is determined by looking for menus in the parent chain of the widget.

Parameters

Parameter

Description

InWidgetInMenu

The widget whose path is search upwards for a menu. That menu will then be dismissed.

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