Hey guys as the name suggests whenever I use GetWorld-> the code complete doesn’t come up. It also shows up as underlined in red stating “Pointer to incomplete class type not allowed”. HOWEVER it still compiles/builds successfully. So it still works. Is it possible I need another GameFramework include to fix this?
here is how I have written the function containing the GetWorld.
// Called when the game starts
void UOpenDoor::BeginPlay()
{
Super::BeginPlay();
//find
ActorThatOpens = GetWorld()->GetFirstPlayerController()->GetPawn();
//GetWorld()->
}