摘一下之前写的代码
void URunExternalAppBPLibrary::RunExe(FString AppPath)
{
FPlatformProcess::CreateProc(*AppPath, nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
}
但是目前好像是用 FGenericPlatformProcess::function 了
本文介绍了一段使用C++编写的代码,该代码通过FPlatformProcess::CreateProc函数来运行外部应用程序。同时提到了另一种实现方式,即使用FGenericPlatformProcess的相关函数。
摘一下之前写的代码
void URunExternalAppBPLibrary::RunExe(FString AppPath)
{
FPlatformProcess::CreateProc(*AppPath, nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
}
但是目前好像是用 FGenericPlatformProcess::function 了
468
2237
506
2429