How can i get variable from UMG Widget blueprint, in other blueprints ?

That is in my tutorial as well!

Check out the section about binding the button Event!

https://wiki.unrealengine.com/UMG,_Create_Scrollable_List_of_Clickable_Buttons_From_Dynamic_Array#Create_Bind_Event

You can put any BP code you want there!

To get the actor so you can fire the event you have many options

  1. create a variable in the UMG BP, for your actor, and set the variable when the UMG widget is created, wherever it is created.

  2. use BP interface

  3. Get All Actors of Class, and find the one you want by name

I would tend to prefer option 1, assuming you create the UMG widget in your level BP or your My Character BP, you should be able to set the var on your UMG widget right there!

:slight_smile:

Rama

1 Like