Hello,
I’ve got custom c++ class that’s a child of ACharacter class, so:
AActor → APawn → ACharacter →
AMyClass
When I try to cast AMyClass pointer to AActor pointer I get an error:
// header file
UPROPERTY(BlueprintReadWrite) class AMyClass * A;
// cpp file
AActor * B = A; // error
a value of type “AMyClass *” cannot be used to initialize an entity of type “AActor *”
What am I doing wrong? With normal, empty C++ classes it works.