Hi,
Is there a way to get a reference to an active widget?
I’m creating a drag widget to another widget element inside my main widget and I want to get a reference to my main widget inside my drag widget.
Create a variable and just get a object reference of the widget in the variable.
Or write create widget and from the pins right click and promote this to a variable.
The main widget was was already created. It contains other widget elements inside of it, which I want to drag - so I created a drag widget for them and I want to get a reference to the main widget that was already created (things change in the main widget so I need that one and not a new one).
Is it possible?
Try it…
In the variable type type the name of your widget and get the reference.
Tried it. I get a reference to a new (main) widget instead of the one I already have on screen. Because some variables change during gameplay, it doesn’t work properly.