Can't create C++ Class inside a folder inside Public

Hey guys.

This happens even in a new Project.

When I try to create a new C++ Class inside a folder like Public/CustomComp it already gives an error when creating saying, Cannot open include file: ‘Health.h’: No such file or directory.

If I create in Public folder everything works correctly and it compiles.

Why can’t I do this?

Thank you

I don’t know if you resolved your issue or not, but just in case.

In your newly created .cpp file, you need to manually change this line :

#include "Health.h"

Into this

#include "CustomComp/Health.h"