Get position of a slate widget on screen

Is there anyway to get the position of a non-SCanvas widget on the screen? I want to use it in conjunction with the mouse coordinates in order to rotate the widget towards the mouse.

You need a pointer to a widget and its geometry. Last time I checked widgets didn’t cache their geometry so most likely you will have to do it on you own. You will have to store widget’s geometry every tick and call GetAbsolutePosition or something like that (sorry but I don’t have the code in front of me right now). Just have a look at FGeometry class and you should be ok.

That should work but one question though, do I need to actually subclass, say, SBox, in order to override Tick to get FGeometry or is there another way? Seems weird to have to subclass every UI element you need to just to get it’s position.