title: How can I get screen position of a UI element?
body: <p>I'm trying to get the global position of a UI element. </p>
  
  <p>I've tried so many different ways to get the position but none of them seems to work. The problem comes with the anchors, as i'm moving them and not the UI element position itself (for resolution purposes), the position of the UI showing in the inspector is always 0,0,0. I also tried to get the anchoredPosition and also the Corners to make some calculations but it still not working, I always get (0,0,0) or some incoherent numbers. </p>
  
  <pre class="lang-py prettyprint-override"><code> Vector3 pointToTravel = Camera.main.WorldToScreenPoint(objectRectTransform.anchoredPosition);
  </code></pre>
  
  <p>This 'pointToTravel' variable should hold the screen position in pixels of the ui element.</p>