How to get UI RectTransform bottom Y position?

Hello,
my goal is to position an object, at the bottom of another object, through a script.

but i’m having trouble getting the correct position.
Since the RectTransform position is Relative to the pivot, trying to get RectTransform.Ymax, doesn’t get me the correct point.
I think it gives a local point relative to the pivot.

I found out that with Tranform.GetWorldCorners(), I can get the corners sand through that, the bottom Y.
But i was wondering if there is an easier and better way?

I just used the same way

Vector3[] corners = new Vector3[4];
yourRectTransform.GetWorldCorners(corners);
Vector3 worldBottomCenter = Vector3.Lerp(corners[0], corners[3], 0.5f);