UPROPERTY not working

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