- Home /
Duplicating and Tweaking Mecanim 2D Animations
Hi there, pretty new to Unity and I've been trying to figure this out. I am currently animating 2D characters in Unity using mecanim by ways of dividing limbs into individual parts, etc. You know the drill.
I have a set of biped characters that are robots who will essentially have the same set of animations, with the variation only being the actual sprites used to compose the robot's body. I guess the basic questions are these :
Is there a quick and easy way to duplicate animation clips into new characters?
What would be the best workflow to go about this in general?
Thank you very much for your time!
Answer by Norax · Jul 27, 2014 at 10:05 AM
You could create one character, save it as prefab (selecting the parent object from the ingame hierarchy and moving to the "project" tab). Once saved the prefab, select it, and move it to the hierarchy, and you will have a duplicated object (you can do it as many times as you need).
Modifiying the second gameobject will allow you to customize only the desired parts of that robots (as you said, only the sprites).
To be able to re-use the animations, the limbs of both robots must have the same name. Animations that have nothing to animate will apear in yellow in the "animation" tab.