I am currently learning Cpp for UE
I am watching some videos but I am unable to include header files.
#include “GameFramework/FloatingPawnMovement.h”
Found it on UE website.(May Be for UE 4.26. Currently I am using UE 5.0.3)
This is how website shows to include but it is showing that cannot open source file.
I am asking that are they changed for UE 5 or I am doing some mistake.
Someone please help me.
1 Like
Just to confirm, does this error appear solely in Visual Studio? Intellisense is notoriously slow and inaccurate, so you may need to compile it in UE5 (it’s the stacked blocks button on the bottom right). If the error still appears in your Message Log, then try the following:
- In UE5, disable Live Coding from the dropdown beside the compile button.
- Open Windows Explorer and delete your .vs, Binaries, and Intermediate folders.
- Right-click on the .uproject file and select “Generate Visual Studio Project Files”.
- Reopen the project and compile it in UE5.
1 Like
It didn’t worked.
I have tried it.
Sorry for the late reply. Do you have “Engine Source” checked in your engine installation options? Does this occur in a new C++ project? I may help if you attach a screenshot of your UE5 Message Log with the error in question.
That one is solved I guess. But the new problem is this one.
Could you help me with this one?
And one more thing that it appears more often when I open my project.
Sometimes it did not appear and my project is build successfully
Completely ignore that window. If it doesn’t show as a Build error, it’s not a real error
1 Like