I can't use UObject method delegates with raw pointers

I have had the same problem, I just added the : public AActor to the header file. Now it complies.