C++ - pointer to incomplete class type is not allowed

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

Hey Equipo,

Can you add this to the top of this cpp file?

#include "Runtime/Engine/Classes/Engine/LevelStreaming.h"

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.