【ue4】打开文件窗口open file dialog
void AContextActor::open_image(){TArray<FString> files;FDesktopPlatformModule::Get()->OpenFileDialog(GetActiveWindow(),TEXT("请选择资源"),TEXT("/"),TEXT(""),TEXT("(Image Files)|*.BMP;*.JPG;*.PNG;*
·
void AContextActor::open_image()
{
TArray<FString> files;
FDesktopPlatformModule::Get()
->OpenFileDialog(GetActiveWindow(),
TEXT("请选择资源"),
TEXT("/"),
TEXT(""),
TEXT("(Image Files)|*.BMP;*.JPG;*.PNG;*.JPEG;)"),
(uint32_t)EFileDialogFlags::None,
files
);
for (auto& name : files)
{
UE_LOG(LogTemp, Warning,
TEXT("%s"), *name);
}
}
更多推荐
已为社区贡献2条内容
所有评论(0)