Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FSlateApplication
Description
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)
| Name | AddModalWindow |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include Path | #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
)
Parameters
| Name | Remarks |
|---|---|
| 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 |