Swapping Sprites With The Sprite Skin Component

Hey all,

I was experimenting with the 2D animation and 2D Bone IK packages, and I ran into an issue when I attempt to swap sprites.

I have a sprite with the sprite skin component to let me move and define the bones in the scene, but when I switch the current sprite its attached to, it doesn’t assign the new bones correctly, and breaks the rig.

Both sprites I’m trying to swap between have identical bone armatures, and bone names. Using Reset Bind Pose and Reset bounds doesn’t fix it either.

Is there a way to reassign the bones at run time? Am I doing something wrong? Or is what I’m trying to do not possible?

Which version of the 2D Animation package are you using?

If you’re on 2019.3 with 3.0.5+ or 2019.2 with 2.2.0-preview.6+ you could try using the experimental Sprite Library component for sprite swapping.

https://docs.unity3d.com/Packages/com.unity.2d.animation@3.0/manual/SpriteSwapIntro.html