This might be a stupid question, but I am trying to create an arrow component in a c++ class but it fails…
I wrote this in the header file:
UPROPERTY(VisibleDefaultsOnly, Category = Extras)
class UArrowComponent* Arrow1P;
and wrote this in the source file, in the constructor:
Arrow1P = ObjectInitializer.CreateDefaultSubobject<UArrowComponent>(this, TEXT("Arrow"));
The errors I’m getting are:
use of undefined type ‘UArrowComponent’
‘StaticClass’: identifier not found
cannot convert from ‘UObject *’ to ‘UArrowComponent *’
All errors are from UObjectGlobals.h
Any help?