Reputation: 11
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);
}
I am calling this class in BP. It works in developement builds but not in shipping builds. Since its shipping build i cant even debug properly. Any ideas??
Upvotes: 0
Views: 1580
Reputation: 121
It's a shipping build so unreal disables all functions that are for testing purposes.
AddOnScreennDebugMessage() is considered for development and well debugging.
Consider creating formal widgets instead.
Upvotes: 1