title: Changing position of Sprite in unity
body: <p>I am trying to change the position of a sprite through a script. Here is the code for trying to change it. I tried it through the SpriteRenderer and the Sprite itself.</p>
  
  <pre><code>     void Update() { 
      checkMesh();
  
      spriteRenderer.enabled = true;
      spriteRenderer.transform.position.Set(10,10,1);
      sprite.rect.Set(10, 10, 100, 100);
      checkStart();
  
      checkForEnd();
  
  
  }
  </code></pre>
  
  <p>Here is how I am grabbing the references to Sprite and the renderer</p>
  
  <pre><code>    spriteRenderer = this.GetComponentInChildren&lt;SpriteRenderer&gt;();
      sprite = spriteRenderer.sprite;
  </code></pre>
  
  <p>I can't seem to find why it won't work. Here is an image of the Hierarchy</p>
  
  <p><a href="https://i.stack.imgur.com/0Zpxs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Zpxs.png" alt="enter image description here"></a></p>
  
  <p>I am trying to move the image named "bigpaddle" under "Expand Paddle"</p>
  
  <p>Any help is extremely appreciated. </p>