title: How to change Sprite uv in Unity?
body: <p>I wrote the following script:</p>
  
  <pre><code>public class SpriteUV : MonoBehaviour 
  {
      private SpriteRenderer _spriteRenderer;
      private Sprite _sprite;
  
      [SerializeField] public Vector2[] _uv = new Vector2 [4]
      {
          new Vector2(0.4f, 0.5f),
          new Vector2(0.6f, 0.5f),
          new Vector2(0.4f, 0.35f),
          new Vector2(0.6f, 0.35f)
      }; 
  
      void Start ()
      {
          _spriteRenderer = GetComponent&lt;SpriteRenderer&gt;();
          _sprite = _spriteRenderer.sprite;
      }
  
      // Update is called once per frame
      void Update ()
      {
          _sprite.uv = _uv;
      }
  }
  </code></pre>
  
  <p>BUT this has an error, it turns that <code>Sprite.uv</code> has no setter (not obvious from <a href="https://docs.unity3d.com/ScriptReference/Sprite-uv.html" rel="nofollow noreferrer">the documentation</a>) How can I change the sprite to map different part of the texture? </p>