title: Is there a way to change the alpha of the sprite of animation in unity 2d using script?
body: <p>I want to make my character transparent in some circumstances, I know I could do that via</p>
  
  <pre><code> GetComponent&lt;SpriteRenderer&gt;().color = new Color(1f,1f,1f,0.2f);
  </code></pre>
  
  <p>if it's a single sprite without animation.</p>
  
  <p>But the thing is that it's during an animation, so is there any way to change the sprite sheet's alpha which the animation is using alpha via scripts?</p>