'FRotation': Identifier not found and pointer to incomplete class

When I try building OpenDoor.cpp (using Unreal 4.22.2 and VisualStudio 2017), it fails with ‘FRotation: Identifier not found’. Is this dude to a missing Include?
image

Other error is ‘pointer to incomplete class type is not allowed’
image

What I have tried:
tried adding includes such as ‘CoreMinimal.h’

Code:

// Called when the game starts
void UOpenDoor::BeginPlay()
{
	Super::BeginPlay();

	AActor* Owner = GetOwner();
	FRotator NewRotation = FRotator(0.f, 0.f, 90.0f);
	Owner->SetActorRotation(NewRotation);
	
}

FRotator, not FRotation. It doesn’t exist, because it’s spelled wrong :stuck_out_tongue:

1 Like

AHH! Thanks! :stuck_out_tongue:

1 Like

Solved the other error from another post, added #include "Engine/World.h" and its working great!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms