0
\$\begingroup\$

I'm using Unity 2019.3.13f1 to make a 2D game with friends and I am looking for help with changing sprites so that different characters can look different. Currently we have sprites for hair, heads, armor, etc... in different sprite sheets, labeled hair1, hair2, etc. so we can add more as we go. We have also created a prefab "unit" with children for each different part so that we could set each piece of the unit to have a different sprite renderer.

I created an animation that had the different sprites manually added and keyframed, but I cannot figure out any way to create a sort of default animation that could be fed something like "Use hair1 for the hair, head3 for the head, armor2 for the armor for this unit's animations". I watched a video from back in 2014 that used a script to change which sprite sheet was used for the animator, but they had one sprite sheet that contained all of the parts, rather than the mix and match approach. Additionally, I have the animator set up so that the unit goes between different animations appropriately, but again, the only way I currently understand it involves me manually creating each animation.

I'm honestly at a complete loss at this point, so any assistance would be greatly appreciated.

\$\endgroup\$
  • \$\begingroup\$ The solution from the 2014 video is still the best I know of, and it works with separate mix & match sprites. How have you tried implementing this in your project so far? \$\endgroup\$ – DMGregory Jun 4 '20 at 19:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.