title: Getting the width of a sprite
body: <p>I am trying to create a row out of some square sprites I have. So to get the width of these sprites i am using </p>
  
  <pre><code>tileWidth = (int)tileSet[0].renderer.bounds.size.x;
  </code></pre>
  
  <p>And then to form the row i am uisng</p>
  
  <pre><code>for(int i = 0; i &lt; tileSet.Length ; i++){
      if((i+1)*tileWidth&lt;screenWidth){
          tileSet[i].transform.position = new Vector3(i*tileWidth,0,0);
      }
  }
  </code></pre>
  
  <p>But the sprites are still overlapping each other and do not form a proper row.<br>
  What am i doing wrong here and how can i rectify it?</p>