DialogContent

This is a custom dialog class, which allows any Slate widget to be used as the contents, with any number of buttons that have any text.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Dialogs/CustomDialog.h

Include

#include "Dialogs/CustomDialog.h"

Syntax

DialogContent
(
    SNew(SImage).Image(FName))
)

Remarks

This is a custom dialog class, which allows any Slate widget to be used as the contents, with any number of buttons that have any text. It also supports adding a custom icon to the dialog. Usage: TSharedRef HelloWorldDialog = SNew(SCustomDialog) .Title(FText)) /**Slate widgets are constructed through SNew and SAssignNew. e.g. TSharedRef MyButton = SNew(SButton); or TSharedPtr MyButton; SAssignNew( MyButton, SButton );

Using SNew and SAssignNew ensures that widgets are populated

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