I write in my cpp file
But really, the ActorComponent.h file placed at /UE4/Source/Runtime/Engine/Classes/Components/ActorComponent.h
I understand that “Engine” module placed in the folder /UE4/Source/Runtime/Engine, so ok, if i use “Engine” module, then i can use relative path. But it should be “Classes/Components/ActorComponent.h” (not just a “Components/ActorComponent.h”)
How does VS understand that Components/ActorComponent.h should be searched inside of “Classes” subdirectory? Where is it specified?
The same question with includes of modules. For example FoliageModule.cpp exists in directory Foliage/Private. FoliageModule.h exists in directory Foliage/Public
But .cpp uses header without any directory structure. As if both files placed in the same directory: