title: How can I set the color of a sprite with the URP Sprite-Lit-Default material in Unity?
body: <p>I have an object that I upgraded to the URP Sprite-Lit-Default material, but since I did that, the code I wrote to set the alpha color doesn't work at all. Upon further testing, I realized that it doesn't seem to work with red, green, blue, or alpha.</p>
  <pre><code>Color c = rend.material.color;
  c.a = 120;
  rend.material.color = c;
  </code></pre>
  <p>In the code above, rend references my sprite renderer. What do I have to do to change the color values from code on the upgraded material? I would like to use some lighting effects, so I don't wanna just switch to something else that doesn't support URP 2D lighting.</p>