8#include "DesktopPlatformModule.h"
10#include "HAL/PlatformProcess.h"
12#pragma warning (disable : 4702)
16 FString AbsolutePath = FPaths::ConvertRelativePathToFull(Path);
17 if (FPaths::DirectoryExists(AbsolutePath))
19 FPlatformProcess::ExploreFolder(*AbsolutePath);
38 TArray<FString> OutFiles;
45 IDesktopPlatform* DesktopPlatform = FDesktopPlatformModule::Get();
51 FString DefaultPath = Path.IsEmpty() ? FPaths::ProjectDir() : Path;
54 bool bOpened = DesktopPlatform->OpenFileDialog(
56 NSLOCTEXT(
"FileUtilities",
"OpenFileDialog",
"Choose a file").ToString(),
59 TEXT(
"All Files (*.*)|*.*"),
60 EFileDialogFlags::Multiple,
66 for (FString& FilePath : OutFiles)
69 FilePath = FPaths::ConvertRelativePathToFull(FilePath);
static TArray< FString > OpenFileDialogReturnFiles(const FString &Path)
static void OpenFileExplorer(FString Path)
static FString OpenFileDialogReturnFirst(const FString &Path)