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?
Other error is ‘pointer to incomplete class type is not allowed’
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);
}