Download

4.6 upgrade GENERATED_BODY causes duplicate body error

I did the update from 4.5 to 4.6 and changed GENERATED_UCLASS_BODY to GENERATED_BODY in the class declarations. Now I get a ‘already has a body’ error when compiling. What else needs to be changed to get rid of this error?

you need also the default constructor in your header file

public:
AMyClass(const FObjectInitializer& ObjInit);