IDesktopPlatform::OpenDirectoryDialog

Opens the "choose folder" dialog for the platform

Windows
MacOS
Linux

References

Module

DesktopPlatform

Header

/Engine/Source/Developer/DesktopPlatform/Public/IDesktopPlatform.h

Include

#include "IDesktopPlatform.h"

Syntax

bool OpenDirectoryDialog
(
    const void * ParentWindowHandle,
    const FString & DialogTitle,
    const FString & DefaultPath,
    FString & OutFolderName
)

Remarks

Opens the "choose folder" dialog for the platform

Returns

true if folder choice was successfully selected

Parameters

Parameter

Description

ParentWindowHandle

The native handle to the parent window for this dialog

DialogTitle

The text for the title of the dialog window

DefaultPath

The path where the file dialog will open initially

OutFolderName

The foldername that was selected in the dialog

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