You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
Maciej
Posted - Nov 20 2023 : 09:55:40 AM Hey there,
Every time I click ALT+SHIFT+Q and "Add Include" to any UE5 component class I get this long include path: #include <../../../../../../../Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h>
How can I change it to a local path like #include "Kismet/GameplayStatics.h"?
I tried to change VA Options -> Code Generation -> Add Include Style and Add Include Path but none of those options gave me the expected result.
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Nov 20 2023 : 10:29:27 AM Unfortunately the way Visual Studio projects are generated and configured has been changed in Unreal Engine 5.3, and according to the C++ include directories that are set in Visual Studio the short path is no longer valid, so VA is generating the much longer path that does match the Visual Studio configuration.
We are going to need to change how Add Include works to fix this: