# Widget Variable to Level-Blueprint

**URL:** <https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380>\
**Category:** UI\
**Tags:** variables, float, unreal-engine, level-blueprint, Widget, question\
**Created:** [November 27, 2021, 1:59pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380 "2021-11-27T13:59:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrPining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrPining](https://forums.unrealengine.com/u/MrPining)\
**Post date:** [November 27, 2021, 1:59pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/1 "2021-11-27T13:59:09Z")

</div>

Hello I have a float in a widget that I generated there

![353142-bild-2021-11-27-145750.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/f/22f9d47d887362513701ccbb93ddec3c13ccbb86.png)

and I want it to be included in my level Bluebrint!  
Does anyone know how I can do this?

---

<div class="post-metadata">

**Author:** ![CodingRook](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CodingRook](https://forums.unrealengine.com/u/CodingRook)\
**Post date:** [November 27, 2021, 6:12pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/2 "2021-11-27T18:12:16Z")

</div>

One way to do this would be for you Level Blueprint to hold a reference of this widget object. You have to decide / figure out how you want to do this. Then your level Blueprint can read the value when it needs to. If you have to know exactly when it is set and your level BP responds to it, then you should also set up a notifier. Your level BP should listen then to this notifier within your Widget, and when Widget dispatches that it has set the variable, then your level BP knows about it and reacts accordingly.

---

<div class="post-metadata">

**Author:** ![MrPining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrPining](https://forums.unrealengine.com/u/MrPining)\
**Post date:** [November 27, 2021, 10:44pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/3 "2021-11-27T22:44:04Z")

</div>

I have a reference but don’t know how to read it out !?

---

<div class="post-metadata">

**Author:** ![CodingRook](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CodingRook](https://forums.unrealengine.com/u/CodingRook)\
**Post date:** [November 27, 2021, 10:45pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/4 "2021-11-27T22:45:33Z")

</div>

What does ‘read it out’ mean? Do you have snapshots of your level blueprint nodes?

---

<div class="post-metadata">

**Author:** ![MrPining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrPining](https://forums.unrealengine.com/u/MrPining)\
**Post date:** [November 27, 2021, 11:45pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/5 "2021-11-27T23:45:04Z")

</div>

I want this Float [Random Text(Gues)]

 ![353179-screenshot-2021-11-28-004148.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/f/28f6b4a3367b9ce7102da77236aec4e75d1dffae.png)

in here

 ![353180-bild-2021-11-28-004341.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/d/93df7586d2437d8d9ed132627bf383c8517d8ea4.png)

so that I can continue to work with it in here

---

<div class="post-metadata">

**Author:** ![CodingRook](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CodingRook](https://forums.unrealengine.com/u/CodingRook)\
**Post date:** [November 28, 2021, 5:19pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/6 "2021-11-28T17:19:43Z")

</div>

Ok, I am going to assume that the second screenshot is from your level blueprint. As I explained above, you need to pass a reference to your widget blueprint object to your level blueprint. Show me where you create the widget and display it. At creation, you should store its reference somewhere that it is easy for the level blueprint to retrieve it. Once you have that reference, a link out of that should be able to show your float variable.

---

<div class="post-metadata">

**Author:** ![MrPining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrPining](https://forums.unrealengine.com/u/MrPining)\
**Post date:** [November 28, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/widget-variable-to-level-blueprint/491380/7 "2021-11-28T18:39:00Z")

</div>

I don’t know how to create a reference that works

 ![353208-bild-2021-11-28-193752.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/3/3d352ee25012f8ed3deab98418c55b843283285b.png)

Do you have snapshots that might make it easier for me to understand?

[Edit]  
(My Level Bueprint)  
Is that correct?

 ![353210-bild-2021-11-28-201145.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/9/9795097a28704e6826200b4257047a71921be158.png)

if so, it would be possible that my widget tells the level blueprint that the variable has changed
