代码工作在开发构建中,但不在运输UE4中


void UCreateNewWindow::CreateNewMap()
{
FString ThePath = FPaths::ConvertRelativePathToFull(FPaths::RootDir());
FString GameName = FApp::GetName();
ThePath.Append(GameName);
ThePath.Append(".exe");
FString MapPath = "/Game/Maps/Scene";
//ThePath.Append(MapPath);
GEngine->AddOnScreenDebugMessage(-1, 12.f, FColor::White, ThePath);
//  TCHAR* path= ThePath.GetCharArray().GetData();
FPlatformProcess::CreateProc(*ThePath, TEXT("/Game/Maps/Scene"), true, false, false, nullptr, 0, nullptr, nullptr);
}

我在英国石油公司给这个班打电话。它适用于开发构建,但不适用于运输构建。由于它的出厂版本,我甚至无法正确调试。有什么想法吗??

这是一个发布版本,因此虚幻会禁用所有用于测试的功能。

AddOnScreenDebugMessage((被考虑用于开发和良好的调试。

请考虑创建正式的小部件。

最新更新