Is there a way to reliably compare the screenspace positions of two widgets that don't have their anchors set in the same position?

Hi,

as you and the description of the ‘get geometry cache’ node mentioned, it is not recommended because this data can easily be outdated from the latest frame rendered. :wink:

I tested around and I think that you need to feed the geometry cache of the widgets parent into the ‘Local to Absolute’ node to get the correct value. So for example

image widget → Get Parent → Get Cached Geometry → (geometry input) Local to Absolute

and

image widget → Get Cached Geometry → Get Local Top Left → (Local Coordinate input) Local to Absolute

I tested it by setting the position of one image on top of the other with a few cascading Canvas Panels and Overlays.

Also there seems to be a function for that in C++ Widget->GetCachedGeometry().GetAbsolutePosition()