How can i read the boolean status from an Widget in another Blueprint?

Hey there,

i have a widget (named WG_Button) with a Checkbox placed in a blueprint(named BP_Fabio_istToll) so i can place it in 3D.

As you can see in picture one, i set a boolean(named yesorno) status depending on the ceckbox is checked or not.

In picture to i set a varible to an objectreference (WG_Button). where i wanna get the status of the “yesorno” boolean to fire off more code. But this is not working, i only get the error message in picture 3.

please help me.
Thanks!

I’m not sure how your entire system is set up, but that error message means that the WG_Button variable wasn’t set. It didn’t know which WG_Button, out of all the ones that might be in the game, you wanted to check.

Somewhere, you need to tell it the specific instance of WG_Button that you want to check on.

Hello Detach789,

thanks for your answer.

Yep the WG_Button is not set. If i try to set it, there is nothing i could pick(see Picture).

301389-wwaaas.png

Maby because the widget itself is not in the game? (its in a Blueprint: “BP_3D_Widget” so i can set it in 3D)
Any idea of how can i fix this?

I’m not sure.

Maybe you could create another version of the widget in your blueprint just to get a variable? Then you could try setting it to the one you created?