Hello everyone,
I posted a question over on the UE Answer Hub regarding an error I’m getting with forward declaring UTankBarrel:
Basically, for some reason when I forward declare UTankBarrel and try to pass the reference into the function declaration for SetBarrel in Tank.h it gives me the following error:
Unrecognized type ‘UTankBarrel’ - type must be a UCLASS, USTRUCT or UENUM
It works fine in TankAimingComponent.h and the only difference is the UFUNCTION macro before the function. My UE4 version is 4.15.2 (a few versions up, but it shouldn’t break such basic functionality, I think)
Any help is kindly appreciated.