FMenuStack::FindMenuInWidgetPath

Searches from bottom to top of the widget path for a menu in the stack.

Windows
MacOS
Linux

References

Module

Slate

Header

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

Include

#include "Framework/Application/MenuStack.h"

Source

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

Syntax

TSharedPtr< IMenu > FindMenuInWidgetPath
(
    const FWidgetPath & PathToQuery
) const

Remarks

Searches from bottom to top of the widget path for a menu in the stack. If the widget at the end of PathToQuery is inside a menu, there will be a menu content wrapper widget in the path.

Returns

The menu in the stack that contains the widget at the end of PathToQuery, or an invalid ptr if not found

Parameters

Parameter

Description

PathToQuery

The widget path to search for a menu

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