Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorDialogLibrary
Description
Open a modal message box dialog with the given message. If running in "-unattended" mode it will immediately return the value specified by DefaultValue. If not running in "-unattended" mode then it will block execution until the user makes a decision, at which point their decision will be returned.
| Name | ShowMessage |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorDialogLibrary.h |
| Include Path | #include "EditorDialogLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorDialogLibrary.cpp |
UFUNCTION (BlueprintCallable, DisplayName="Show Message Dialog",
Category="Editor Scripting | Message Dialog")
static TEnumAsByte < EAppReturnType::Type > ShowMessage
(
const FText & Title,
const FText & Message,
TEnumAsByte < EAppMsgType::Type > MessageType,
TEnumAsByte < EAppReturnType::Type > DefaultValue,
EAppMsgCategory MessageCategory
)
The result of the users decision, or DefaultValue if running in unattended mode.
Parameters
| Name | Remarks |
|---|---|
| Title | The title of the created dialog window |
| Message | Text of the message to show |
| MessageType | Specifies which buttons the dialog should have |
| DefaultValue | If the application is Unattended, the function will log and return DefaultValue |
| MessageCategory | The category of the message (affects the icon used) |