Changing Parts of a Character
Sprite Swap offers a quick way to change one Sprite on a model, while everything else remains identical. This means you can alter part of a character’s appearance (for example, change a scarf to a different color) while the rest of the character remains the same.
In the following example, one Sprite represents a green scarf, and one represents a red scarf.
Here’s an example workflow for how you might change the scarf on a 2D character, while everything else remains the same:
Place the Sprites you want to swap in the Sprite Library Asset, and assign them all to a Category named Scarf. You can do this directly via the the Skinning Editor (see Editor Integration).
In the Scene, select the character Prefab, and then select the Sprite of the scarf.
To swap between the different Sprites, select the Sprite Resolver component’s Label drop-down, and select which one you want to swap to.
The Sprite Resolver displays the two Sprites available in the ‘Scarf’ Category. You can then swap between all available options in the Sprite Resolver component settings.