I know that this is a very old Unity issue. I'm doing a 2D pixel art rpg and I want to sprite swap whenever the player gets an armor (helmet,vest,boots...).
I created an empty game object and parented all armor game objects to it.
After a long research, I found the Unity Sprite Library Asset that can swap the sprites of a category. I have a helmet idle sprites and registering this to the sprite library, and I can successfully swap the head helmet. The problem is that when I animate this, I can't swap the sprites because the animation keyframes animates only one sprite. I don't really know how to use the sprite library asset to change not only the single sprite render but all the sprites in the animation (I have sprite for each keyframe because I update the sprite, I don't use things like 2D bones)
That's the idle player animation:
That's how I configured the equipment objects (sprite renderer):
Is there a way to help with my code?