It’s hardly about the path to the project. I have the engine in this path: C:/pc/UnrealEngine/UE_5.4
. And the projects are in a slightly different place: C:/pc/UnrealProjects/ MyProject
.
But it seems to be working fine now. I don’t know what I did. Maybe generating Visual studio files or something else helped. I just opened the project a few hours later, decided to generate files for the compiler and it seemed to work. But thanks for your help anyway.