i am trying to call GEngine->LoadMap inside GameMode->StartPlay
and i get freeze.
void AMyGameMode::StartPlay()
{
Super::StartPlay();
static bool OnlyOnce = false;
if(!OnlyOnce)
{
FString Error;
GEngine->LoadMap(*GEngine->GetWorldContextFromWorld(GetWorld()), FURL(TEXT("NewMap1")), nullptr, Error);
OnlyOnce = true;
}
}