Variable Widget to Widget ?

Hello, I have 3 variables on a widget, and I want use there on another widget. How I can do ?

You can use Cast node our you can declare reference variable to the widget from what you need to take your variables in the second Widget blueprint

Can you make me screenshot, because I already try it please

As MK Studio say, you’ll need to use cast node, but you also can use the node «get all widget of class» which cost more (if I say nothing wrong).

If you want to cast you’ll need an object reference, they’r more than one technique to get your object reference.
example:

When you create widget (inside the blueprint, it’s doesn’t really mater if it’s level bp or simple actor or pawn) you save the output inside an object variable and reuse it later.

Master_Blueprint create Widget1 and Widget2->stock variable of both in separate variable (or array)->Widget1 ask Master_Blueprint to give variable of Widget2->then you can cast from widget1 to widget2

In my opinion you should directly set an object reference inside the widgetBP.

Let me know if it help you a little bit more with those explanation.

Widget A

Widget B

You can use any variable you need and you can delete code in construction code on Widget B and set in on other blueprint where you greate your 2 widgets
This is the best way becouse on use cast node sometimes it was a problem becouse you need a reference that you need to declare in this way you dont got any problem but you need to remember to update your reference if it changed

you use the same code I posted here our your own. If you used your own show screenshots. I told tweek the costruction is dangerous and powerfull if you know where to place your hands

man look my code. replicate it on your computer and try to understand it. if you understand this code you can do what you want to do.

I try, but I did not really happen

I try, but I did not really happen

what ? Not understand

I’ll try

Just, you can show me the part or press on a button to move from one widget to another, because I believe I when I do “remove from parent”, I reset the variables.

Yeah, I was test it, I reset variables when I “remove from parent”

I don’t know if it working right, because, the variables was reset… I search an issue, can you make the same on your side please ?

so your conclusion was that my sistem working right? xD