title: Position of rect Transform in unity UI
body: <p>I found a very confusing issue in programming with Unity's UI rectTransform:</p>
  
  <p>in the inspector, we can find that the RectTransform's position was set to <code>(0,0,0)</code>
  <a href="https://i.stack.imgur.com/FLwqo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FLwqo.png" alt="enter image description here"></a></p>
  
  <p>but in the code in <code>Start()</code>, when I print the position:</p>
  
  <pre><code>parentObject = transform.parent.gameObject;
  Debug.Log("parentObject rectTransform :" + parentObject.GetComponent&lt;RectTransform&gt;().localPosition);
  </code></pre>
  
  <p>This will give me a position of:</p>
  
  <pre><code>parentObject rectTransform :Panel: (0.0, -562.5, 0.0)
  UnityEngine.Debug:Log(Object)
  NewWorkerController:Start() (at Assets/Scripts/NewWorkerController.cs:60)
  </code></pre>
  
  <p>Things will be even more confusing when we try to get the <code>position</code> instead of the <code>localPosition</code>:</p>
  
  <pre><code>parentObject rectTransform :Panel: (621.0, 1365.5, 0.0)
  UnityEngine.Debug:Log(Object)
  NewWorkerController:Start() (at Assets/Scripts/NewWorkerController.cs:60)
  </code></pre>
  
  <p>I have also checked the posX and posY of this rectTransform during playMode which indict that it has not been changed(kept showing <code>(0,0,0)</code>)</p>
  
  <p>What's wrong with that?</p>