Hey, I’ve had this problem for a long time (UE5.5, UE5.6, UE5.7). I’ve tried everything, but nothing works. I installed everything correctly, and I’ve tried both UE5 from the Epic Games Launcher and the source version. Visual Studio has all the necessary components installed. I start a new project in Unreal Engine, and when I create a new C++ class, such as a new Character Class, it opens VS 2022. When I open the .cpp and .h files, they show tons of errors, even though the code hasn’t been touched.
Severity Code Description Project File Line Suppression State Details
Error (active) E1696 cannot open source file “UObject/ObjectMacros.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Intermediate\Build\Win64\UnrealEditor\Inc\MyProject2\UHT\PlayerCharacter.generated.h 14
Error (active) E1696 cannot open source file “UObject/ScriptMacros.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Intermediate\Build\Win64\UnrealEditor\Inc\MyProject2\UHT\PlayerCharacter.generated.h 15
Error (active) E1696 cannot open source file “UnrealEdSharedPCH.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Intermediate\Build\Win64\x64\MyProject2Editor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.h 3
Error (active) E1696 cannot open source file “Player/PlayerCharacter.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Source\MyProject2\Player\PlayerCharacter.cpp 4
Error (active) E1696 cannot open source file “CoreMinimal.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Source\MyProject2\Player\PlayerCharacter.h 5
Error (active) E1696 cannot open source file “GameFramework/Character.h” MyProject2 C:\Users\Sneak\OneDrive\Dokumentumok\Unreal Projects\MyProject2\Source\MyProject2\Player\PlayerCharacter.h 6