FSlateApplication::AddModalWindow

Adds a modal window to the application.

Choose your operating system:

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

void AddModalWindow
(
    TSharedRef< SWindow > InSlateWindow,
    const TSharedPtr< const SWidget > InParentWidget,
    bool bSlowTaskWindow
)

Remarks

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)

Parameters

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