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 5 - UStaticMeshComponent Highlighting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JakeS
New Member

USA
2 Posts

Posted - May 24 2023 :  02:17:13 AM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page

JakeS
New Member

USA
2 Posts

Posted - May 24 2023 :  10:39:48 AM  Show Profile  Reply with Quote
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!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18264 Posts

Posted - May 24 2023 :  12:00:53 PM  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000