Why my BP reference in my Struct is marked as "Not a Type name"?

I’m trying to add a Blueprint object reference to a Struct, So I create the BP Class Reference Variable from its c++ parent but when I declare it to the Struct is marked as an error as a “not a type name”.

Any ideas to fix it?

C++ doesn’t know about blueprint classes. To reference a blueprint object you need a pointer of the native parent class type. in this case I’m guessing it should be

AUnitParent* Unit;
2 Likes