title: Unity Transform position isn't changing position
body: <p>I am trying to change the position of a border to be just off the top of the screen. I did this by taking the top of the screen, then adding half the scale of the object (since it is centered in the middle). However, when I do this nothing changes at all. I printed out the coordinates and it says it moved, but it didn't. Here is my code (from the Start() method in WallScalar class).</p>
  
  <p><em><strong>Note:</strong></em> The following code is the only code in the WallScalar class, this script is applied to the "Top" gameObject.</p>
  
  <pre><code>      transform.position = 
        new Vector3(0, Camera.main.orthographicSize + (transform.localScale.y / 2), 1);
  
        print("yCoor: " + transform.position.y);
  </code></pre>
  
  <p>Since the object has a scale of one, and the top is at y = 5, the object should be placed at y = 5.5f. With that print statement, it says it is at y = 5.5f but it didn't move on my screen. Here is an image for more details:</p>
  
  <p><a href="https://i.stack.imgur.com/XrDaH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XrDaH.png" alt="enter image description here"></a></p>
  
  <p>As you can see, it says it was moved to yCoor = 5.5f, but it didnt, because when I manually type 5.5 for y, it isn't visible, it is just off the screen. 
  Any help with figuring this out would be greatly appreciated. </p>
  
  <p>Update: If i put a print statement such as </p>
  
  <pre><code>      print("yCoorU: " + transform.position.y);
  </code></pre>
  
  <p>In my update method, it reads y = 5, so something is forcing it back to be 5, but know that nothing else has any call to the "Top" GameObject that the script is being applied to.</p>