Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Unreal Engine Add Include problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maciej
Starting Member

Poland
1 Posts

Posted - Nov 20 2023 :  09:55:40 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 20 2023 :  10:29:27 AM  Show Profile  Reply with Quote
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:

case=150119

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000