title: Get single sprite from sprite atlas
body: <p>I'd like to get a single sprite which GameObject has in a SpriteRenderer component.
  Unfortunately, this code returns the whole atlas, but I need to a part of this atlas.</p>
  
  <pre><code>Texture2D thumbnail = GetComponent&lt;SpriteRenderer&gt;().sprite.texture;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/wEFIB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wEFIB.png" alt="Pic"></a></p>