A compilation Error every time a class is just added by the class wizard

I noticed in the generated CPP files the include headers were wrong.

Eg:

I created an Actor class called “MyTestActor” under the GameplayActors folder
It generated the “MyTestActor.h” and “MyTestActor.cpp” files as expected under the GameplayActors folder

When I open the cpp file, I notice that the for the include it was written :
#include “GameplayActors/MyTestActor.h”

Instead it should be :
#include “MyTestActor.h”

Did this change and built the project and it worked

5 Likes