FSlateApplication::FindWidgetWindow

Finds the window that the provided widget resides in

Windows
MacOS
Linux

Deprecated

  • The FindWidgetWindow method that takes an FWidgetPath has been deprecated. If you dont need the widget path, use FindWidgetWindow(MyWidget) instead. If you need the path use GeneratePathToWidget

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

TSharedPtr< SWindow > FindWidgetWindow
(
    TSharedRef< const SWidget > InWidget,
    FWidgetPath & OutWidgetPath
) const

Remarks

Finds the window that the provided widget resides in

Returns

The window where the widget resides, or null if the widget wasn't found. Remember, a widget might not be found simply because its parent decided not to report the widget in ArrangeChildren.

Parameters

Parameter

Description

InWidget

The widget to find the window for

OutWidgetPath

Full widget path generated

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