PromptUserForDirectory

Helper method for popping up a directory dialog for the user.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

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

Include

#include "Dialogs/Dialogs.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Dialogs/Dialogs.cpp

Syntax

bool PromptUserForDirectory
(
    FString & OutDirectory,
    const FString & Message,
    const FString & DefaultPath
)

Remarks

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.

Returns

true if the user selected the OK button, false otherwise.

Parameters

Parameter

Description

OutDirectory

[out] The resulting path.

Message

A message to display in the directory dialog.

DefaultPath

An optional default path.

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