Building error

The syntax for the UPROPERY macro is correct. (copied it into an actor). The problem is else where.
Perhaps you are putting it in a class that cannot be exposed to blueprints?