Navigation
API > API/Editor > API/Editor/UnrealEd
Description
Helper method for popping up a directory dialog for the user. OutDirectory will be set to the empty string if the user did not select the OK button.
| Name | PromptUserForDirectory |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Dialogs/Dialogs.h |
| Include Path | #include "Dialogs/Dialogs.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Dialogs/Dialogs.cpp |
bool PromptUserForDirectory
(
FString & OutDirectory,
const FString & Message,
const FString & DefaultPath
)
true if the user selected the OK button, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| OutDirectory | [out] The resulting path. |
| Message | A message to display in the directory dialog. |
| DefaultPath | An optional default path. |