IDesktopPlatform::OpenFileDialog

Opens the "open file" dialog for the platform

Windows
MacOS
Linux

References

Module

DesktopPlatform

Header

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

Include

#include "IDesktopPlatform.h"

Syntax

bool OpenFileDialog
(
    const void * ParentWindowHandle,
    const FString & DialogTitle,
    const FString & DefaultPath,
    const FString & DefaultFile,
    const FString & FileTypes,
    uint32 Flags,
    TArray< FString > & OutFilenames,
    int32 & outFilterIndex
)

Remarks

Opens the "open file" dialog for the platform

Returns

true if files were 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

DefaultFile

The file that the dialog will select initially

Flags

Details about the dialog. See EFileDialogFlags.

FileTypes

The type filters to show in the dialog. This string should be a "|" delimited list of (Description|Extensionlist) pairs. Extensionlists are ";" delimited.

OutFilenames

The filenames that were selected in the dialog

OutFilterIndex

The type 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