Got a problem when compiling this section of code.
// Create a CameraComponent
FirstPersonCameraComponent = PCIP.CreateDefaultSubobject<UCameraComponent>(this, TEXT("FirstPersonCamera"));
FirstPersonCameraComponent->AttachParent = CapsuleComponent;
// Position the camera a bit above the eyes
FirstPersonCameraComponent->RelativeLocation = FVector(0, 0, 50.0f + BaseEyeHeight);
For the PCIP i get “Error: identifier “PCIP” is undefined” and then for the UCameraComponent i get “type name is not allowed”
New to this so not entirely sure whats happening.
Any ideas would be greatly appreciated.