Missing 'public' in Class declaration

I got the similar error last night, which I defined my class as

UCLASS()
class MYGAME_API MyClass : AInfo {
  GENERATE_BODY()
  public:
     MyClass();
    ~MyClass();
}

And I fixed that by adding

Class MyGAME_API MyClass: public AInfo {
}

In my class decleration. I hope it helps :slight_smile:

1 Like