Set variable in Common UI

Hello guys,

I try to create a in game menu, i need to set some variable into common activable widget but when i push the widget with widget stack i cant set the variable before the widget is on the screen. That will create some bug, for example in that menu there is a inventory system that allow character to drop items but i need to set off that button for some items. How i can set variable before active widget ?

Can you set the variables in the widget’s construct event?

In Common UI doesn’t exist create widget (because i used Common Stack with active widget)