Choose your operating system:
Windows
macOS
Linux
Module |
|
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 |
void AddModalWindow
(
TSharedRef< SWindow > InSlateWindow,
const TSharedPtr< const SWidget > InParentWidget,
bool bSlowTaskWindow
)
Adds a modal window to the application. In most cases, this function does not return until the modal window is closed (the only exception is a modal window for slow tasks)
Parameter |
Description |
---|---|
InSlateWindow |
A SlateWindow to which to add a native window. |
InParentWindow |
The parent of the modal window. All modal windows must have a parent. |
bSlowTaskWindow |
true if the window is for a slow task and this function should return before the window is closed |