Does anyone know a way to get the location of a widget in screenspace?
I’ve got a bunch of buttons that spawn into a scrollbox, and I want to pop a contextual menu up on the location of each button when pressed. The only function I see i that looks like the correct one is getting the widget transform, but it appears to spit out 0,0 for every item within the scrollbox. I’m guessing it’s because it’s outputting it’s own transform relative to itself, which seems correct as 0,0.
Getting the slot from the scrollbox doesn’t seem to work either… I don’t see any functions related to transform, viewport, screen, or anything when getting a slot. Same with the render transform when I get a child of the scrollbox… it’s always 0,0.
Any help or guidance would be appreciated. I’m attaching an image to better illustrate what I’m trying to accomplish.