Author |
Topic  |
|
JakeS
New Member

USA
2 Posts |
Posted - May 24 2023 : 02:17:13 AM
|
Hey, I'm working on a project in Unreal 5 using VA and I'm loving it so far but I've come across one small thing that - while not a breaking issue - is bothering me far more than I care to admit. 

As you can see above - UStaticMeshComponent is being colored as if it were an enum member rather than a class like UCapsuleComponent and USceneComponent. Anyone know why? And how to get it to match the others?
Thanks!
EDIT: So perplexingly enough, simply F12ing to go to the definition of UStaticMeshComponent fixed the issue. Strange! |
Edited by - JakeS on May 24 2023 02:31:11 AM |
|
feline
Whole Tomato Software
    
United Kingdom
18264 Posts |
Posted - May 24 2023 : 08:15:20 AM
|
This suggests that VA isn't picking up all of the UE header files when it parses your solution.
A second clue is that while some of the UE symbols are in italics, "UPROPERTY" isn't being shown in italics. Do you have UE installed outside of the directory "C:\Program Files\" ?
There is a known limitation in VA, that it won’t correctly pick up the Unreal Engine directory tree if it installed outside of "C:\Program Files\"
case=105950
to work around this problem can you please create a junction point link to point at the installed engine. So:
Create the directory "C:\Program Files\Epic Games\"
Open a command prompt inside this directory, running as administrator, and run the command:
mklink /J UE_5.1 "C:\UE5\5.1"
Where the second path is the directory where you have installed / placed Unreal Engine. This will create a directory link inside the Windows file system, so while Unreal Engine will appear to exist inside this Program Files sub-directory, is still where it was originally installed.
Now to update your project to use the new path, open the Unreal Engine editor via this junction point, so run:
C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor.exe
and open your project. In Unreal Engine 5.x use:
Tools menu -> Refresh Visual Studio Project
this will update the project to use the "C:\Program Files\" path of the junction point for the location of Unreal Engine, which is what Visual Assist is expecting.
|
zen is the art of being at one with the two'ness |
 |
|
JakeS
New Member

USA
2 Posts |
Posted - May 24 2023 : 10:39:48 AM
|
Ah! What you've described is indeed the source of the issue. I have all of my development related programs installed to C:/Dev/... . Thank you for the tip on creating the directory link! |
 |
|
feline
Whole Tomato Software
    
United Kingdom
18264 Posts |
Posted - May 24 2023 : 12:00:53 PM
|
Hopefully the steps I have described are clear and easy to follow, but please do ask if you have any problems with this. |
zen is the art of being at one with the two'ness |
 |
|
|
Topic  |
|