# Pass Variable from HUD Blueprint to Level Blueprint

**URL:** <https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130>\
**Category:** UI\
**Tags:** Variable, hud, unreal-engine, UE4, question, Blueprint\
**Created:** [March 31, 2014, 11:02am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130 "2014-03-31T11:02:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_73e13a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73e13a4c](https://forums.unrealengine.com/u/anonymous_user_73e13a4c)\
**Post date:** [March 31, 2014, 11:02am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/1 "2014-03-31T11:02:22Z")

</div>

Hello.

I have a very simple scene and functionality setup that I want to do. Basically just to be able to hide, un-hide some meshes during the game with the help of some buttons that will always be visible to the player.

I managed to get the buttons to change its texture depending on BOOL Button Pressed true or false.This is done in MyHUDBlueprint.

But I just cant seam to find a way to pass that variable Button Pressed from MyHUDBlueprint to the LevelBlueprint in order to make the button do something in the scene. Like hide, un-hide the mesh.

Can you guys please help ? I feel like its something minor but I cant point my finger yet on what I am doing wrong.

Thank You

---

<div class="post-metadata">

**Author:** ![DizzyWes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DizzyWes](https://forums.unrealengine.com/u/DizzyWes)\
**Post date:** [March 31, 2014, 11:59am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/2 "2014-03-31T11:59:15Z")

</div>

Hi Diablo,

I’m sure there are a number of ways you could do this, one way would be to use a [Blueprint Interface][1].

Create a _HUD Interface Blueprint_ with a **Bool Out Node**. In your HUD Blueprint, implement the interface through the _Blueprint Props_. In the interface section of your HUD Blueprint, connect your _Button Pressed_ variable to the out pin of the **Return Node**.

Now in your _Level Blueprint_, you can then read the value of that Bool how ever you want (with a quick example below that just returns the value from the HUD Blueprint when I overlap a trigger box).

 ![2818-level_bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/4/b446b65301ae19887065e7e21d6613b8c04366b6.png)

Hope this helps!

-W

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73e13a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73e13a4c](https://forums.unrealengine.com/u/anonymous_user_73e13a4c)\
**Post date:** [March 31, 2014, 1:04pm UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/3 "2014-03-31T13:04:41Z")

</div>

It helped and then some !

It turned out It was, as I suspected, much simpler than I expected.

THANK YOU VERY MUCH !!!

---

<div class="post-metadata">

**Author:** ![funkstatic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@funkstatic](https://forums.unrealengine.com/u/funkstatic)\
**Post date:** [July 25, 2014, 12:03am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/4 "2014-07-25T00:03:49Z")

</div>

How would you use that same interface setup to trigger an event instead?  
Or do you just set up your tick function in the level blueprint to constantly check the value of that bool?

---

<div class="post-metadata">

**Author:** ![funkstatic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@funkstatic](https://forums.unrealengine.com/u/funkstatic)\
**Post date:** [July 25, 2014, 12:43am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/5 "2014-07-25T00:43:26Z")

</div>

Nevermind, I figured out a much cleaner way to do it for my needs using an event dispatcher instead 🙂

---

<div class="post-metadata">

**Author:** ![Avelworldcreator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avelworldcreator](https://forums.unrealengine.com/u/Avelworldcreator)\
**Post date:** [January 17, 2016, 2:16am UTC](https://forums.unrealengine.com/t/pass-variable-from-hud-blueprint-to-level-blueprint/279130/6 "2016-01-17T02:16:26Z")

</div>

I wish people who “figured it out” would explain their solution and not just say that. I’m using an event dispatcher but it’s a fail… Oh wait!
