FSlateApplication::FindBestParentWindowForDialogs

Given an optional widget, try and get the most suitable parent window to use with dialogs (such as file and directory pickers).

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

TSharedPtr< SWindow > FindBestParentWindowForDialogs
(
    const TSharedPtr< SWidget > & InWidget,
    const ESlateParentWindowSearchMethod InParentWindowSearchMethod
)

Remarks

Given an optional widget, try and get the most suitable parent window to use with dialogs (such as file and directory pickers). This will first try and get the window that owns the widget (if provided), before falling back to using the MainFrame window.

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