title: Change AnimationClip's sprites in Unity
body: <p>So I have an Animator, which animates my player when moving, I have a SpriteRenderer property in my AnimationClip with a few frames. If the player gets an upgrade I want the animation to behave the same, but change these sprites. How is is that possible? (I'd prefer to do it programmatically.)</p>
  
  <p><strong>Edit</strong>: please note that I can't just create a new animation state to achieve this, cause if I have 3 SpriteRenderer property in an animation, each of these refers to a part of the character, each part can be upgraded 4 times, so If I create different animation states for each possible combination, I end up with 5^3 animations.</p>
  
  <p><a href="https://i.stack.imgur.com/MSmf6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MSmf6.png" alt="enter image description here"></a></p>