Unreal not setting up Path correctly c++

Still same problem for visual studio and rider IDE to set up the Path correctly . Unreal saying " No Such file "
It is both for 4.26 and unreal 5. Any fix for this ?
Exampel

a/MyActor.h. Both cpp and h file are in the same folder but the cpp saying #include a/MyActor.h :o.

Way to reproduce it : Create a C++ class and add a path to it . It should come up with error " No such file " As it not taking in from the right file directory.

Try double checking the file path in your OS file explorer. I’ve run into the issue of the IDE saying it’s in one place, but when looking using my OS file explorer it’s not the same path.

The file is in the explorer . It´s creating the file as normal . It´s the .cpp file that are not correct . The c++ trying to grab h file from a location that don´t exist :slight_smile: . It´s how the Unreal setting up the classes that is the problem here :slight_smile: .

340261-screenshot-13.png

Down is how it should be as the .h file is in the same folder .

Look at this took Yesterday . Same Path . Look where it´s grabbing the .h file from :o

340263-screenshot-11.png

As it is in the same folder No need to adding path in the .Cpp class :slight_smile:

So the correct path is #include"MyActor.h"