Set a c++ float in blueprint

Hi, I have a float that I got from my c++ script and I was trying to set it in blueprints but I don’t really know how. I know how to do it with variables you create in blueprints, but I’m not sure in this case.
As you can see I’m trying to decrease the float “Points” but I cant set it after

Any help would be appreciated! :slight_smile:

Hi, you should set your UPROPERTY to BlueprintReadWrite so you will be able to set in blueprints. I would also suggest to add EditDefaultsOnly to be able to set blueprint defaults

UPROPERTY(BlueprintReadWrite)
float Points;

Here is a doc for all property specifiers

2 Likes

thank you so much :smiley:

2 Likes

This topic has been moved from International to Programming & Scripting: Blueprints.

Moving this to a new category to help devs in the future! :slight_smile: