Hi, I am trying to get a button’s position inside the widget’s event graph, but i have no ide how to do it.
i tried:

but it kept returning X:0 Y:0
My Hierarchy:
[Test 1]
[sizebox]
[overlay]
[sizebox]
[border]
[button] <-----------
[sizebox]
[border]
[image]
1 Like
mdonge
2
when I tried this method, the return was from the container, so it appears that your button is in 0:0 in your border.
when my buttons are in the main canvas, I have their coord in the widget space
how could i get the button’s coord’s in the widget space? I need to have them inside sizeboxes.
mdonge
4
maybe try to get parent ? I don’t really know sorry …