Download

C ++ header file reference problem

I have a C++ file



TEST
   ├Public
   ┆  ┕Character
   ┆         ┕TestCharacter.h
   ├Private
   ┆  ┕Character
   ┆          ┕TestCharacter.cpp


When creating the TestCharacter class, UE4 will fail to compile. I will go to TestCharacter.cpp and change #include “TestCharacter.h” to #include “Character / TestCharacter.h”

Is there a way for UE4 to compile and use #include “TestCharacter.h” directly?