Pass Variable from HUD Blueprint to Level Blueprint
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.
asked Mar 31 '14 at 11:02 AM in Using UE4
I'm sure there are a number of ways you could do this, one way would be to use a Blueprint Interface.
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).
Hope this helps!
answered Mar 31 '14 at 11:59 AM
DizzyWes ♦♦ STAFF
It helped and then some !
It turned out It was, as I suspected, much simpler than I expected.
THANK YOU VERY MUCH !!!
answered Mar 31 '14 at 01:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here