IDesktopPlatform::OpenFileDialog

Opens the "open file" dialog for the platform

Unreal Engine C++ API Reference > Developer > DesktopPlatform > IDesktopPlatform > OpenFileDialog

References

   
Module DesktopPlatform
Header /Engine/Source/Developer/DesktopPlatform/Public/IDesktopPlatform.h
Include #include "IDesktopPlatform.h"
bool OpenFileDialog
(
    const void * ParentWindowHandle,
    const [FString](API\Runtime\Core\Containers\FString) & DialogTitle,
    const [FString](API\Runtime\Core\Containers\FString) & DefaultPath,
    const [FString](API\Runtime\Core\Containers\FString) & DefaultFile,
    const [FString](API\Runtime\Core\Containers\FString) & FileTypes,
    uint32 Flags,
    [TArray](API\Runtime\Core\Containers\TArray)< [FString](API\Runtime\Core\Containers\FString) > & OutFilenames,
    int32 & outFilterIndex
)

Remarks

Opens the "open file" dialog for the platform true if files were successfully selected

Parameters

Name 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library