Download

Getting the position of a widget

Hi, i have a user created widget inside my hud widget called test1 and i would like to get it’s location from the hud’s event graph.

[Hud1]
[canvas panel]
Test1

Currently i can drag and drop “test1” and i have this thing set up to print the location of it:

But when i start the game it prints:
X=4 Y=0
and if drag and drop it, i get X=0 Y=0 no matter where i drop it.
Am i doing it wrong? why is it printing for when i launch the game.

How could i get the position “test1” after dragging and dropping it?