Cannot open source file "generated.h"

I tried your steps.

  • First thing is that when I double click .uproject, it doesn’t build everything and asks me to build the project manually. So I tired to build the project manually but it still says "Cannot open source file “X_generated.h”.

  • I’ve tested the header file with a project that already has the generated.h header file in it and it works without any problems, but whenever I try to add the generated.h file myself to my c++ code, it says "Cannot open source file “X_generated.h”.