# Set a c++ float in blueprint

**URL:** <https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451>\
**Category:** Blueprint\
**Tags:** newbie, unreal-engine, please-help-me, need-help, question\
**Created:** [November 22, 2022, 9:30pm UTC](https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451 "2022-11-22T21:30:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marquez02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marquez02](https://forums.unrealengine.com/u/Marquez02)\
**Post date:** [November 22, 2022, 9:30pm UTC](https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451/1 "2022-11-22T21:30:45Z")

</div>

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/c/7cc66d13bc093de7cade1cdd3c657331a5d09d00.png)

Any help would be appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![real.dude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@real.dude](https://forums.unrealengine.com/u/real.dude)\
**Post date:** [November 22, 2022, 10:15pm UTC](https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451/2 "2022-11-22T22:15:46Z")

</div>

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

```auto
UPROPERTY(BlueprintReadWrite)
float Points;

```

Here is a doc for all property specifiers

> **[Property Specifiers](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/GameplayArchitecture/Properties/Specifiers/)**
>
> Keywords used when declaring UProperties to specify how the property behaves with various aspects of the Engine and Editor.

---

<div class="post-metadata">

**Author:** ![Marquez02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marquez02](https://forums.unrealengine.com/u/Marquez02)\
**Post date:** [November 22, 2022, 11:10pm UTC](https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451/3 "2022-11-22T23:10:56Z")

</div>

thank you so much 😃

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [November 23, 2022, 12:47am UTC](https://forums.unrealengine.com/t/set-a-c-float-in-blueprint/713451/4 "2022-11-23T00:47:49Z")

</div>

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

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