UPROPERTY not working

When I type the UPROPERTY line, noting but the “components” shows up as colored. UE4 won’t compile, and this is the only strange thing i’ve noticed. This has happened with all versions of UE4 I’ve tried. I’m using Visual Studio 2019 with Visual Assist.

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = “Components”)

I have no clue why your VAX is highlighting it. I just copied it into my VS and it as fine. As for why it doesn’t compile, is the variable private? If so you need to add

meta = (AllowPrivateAccess = true)

to the UPROPERTY parameters

No, i mean it isn’t highlighting. in the tutorial i’m watching, it shows that it is supposed to highlight. This is the only thing that i can see may be causing problems.

If it doesn’t compile, you should have an error log from VS?

I do, most of it is just looks like non-sense

I put my whole code section here UPROPERTY() Isn't working right - Character & Animation - Epic Developer Community Forums

I put the full section of my code here, where exactly is the UPROPERTY parameters?