UE4打开文件对话框

通过UE4打开对话框

 1 TArray<FString> OutFiles;
 2 FDesktopPlatformModule::Get()->OpenFileDialog(            FSlateApplication::Get().FindBestParentWindowHandleForDialogs(nullptr),
 3             TEXT("请选择资源"),
 4             TEXT("/"),
 5             TEXT(""),
 6             //TEXT("All Files (%s)|%s|%s"),
 7             //TEXT("(Image Files)|*.BMP;*.JPG;*.PNG;*.JPEG;)"), //.xls/.xlsm/.csv/
 8             LOCTEXT("Excel", "Trace files (*.xls)|*.xls;*xlsx;*.xlsm;*.csv|All files (*.*)|*.*").ToString(),
 9             (uint32_t)EFileDialogFlags::None,
10             OutFiles
11         );

 

posted @ 2022-06-29 18:04  sev  阅读(407)  评论(0编辑  收藏  举报