Get The Same Y Coordinate As Shown In Editor

How do I get the Same Y Position Coordinate as shown in the RectTransform component in the Unity Editor? I’ve tried localPosition, regular Position, worldToScreenPoint, Screentoworldpoint… none seem to work…

3069827--230835--Screen Shot 2017-05-14 at 9.38.04 PM.png ’

Thanks!

It’s a RectTransform component, not Transform, so you use RectTransform properties, such as anchoredPosition.

–Eric