I’m following this tutorial. And I get an error saying: “pointer to incomplete class type is not allowed” when I try to use the “level” pointer’s functions
Code in the .cpp file:
void AProyectGameMode::SpawnMap()
{
FLatentActionInfo info;
UGameplayStatics::LoadStreamLevel(GetWorld(), *MapName, false, false, info);
ULevelStreaming* level = UGameplayStatics::GetStreamingLevel(GetWorld(), *MapName);
level->LevelTransform = MapTransform;
level->bShouldBeVisible = true;
}
I’m using the 4.12.5 version