- Home /
How to layer animations
Hi! This the way i set up my player. Its a 2D game and each part of the player is a sprite.
http://i.imgur.com/oeQwN3u.png
I have an animator on the "Player" object so i can animate the different body parts. The legs have a walking animation. Now i want the weapon to have a firing animation. The firing animation needs to play weather the player is in Idle moder or is playing the Walking animation. How do i achive this? Is this done through layering or should the weapon have its own animator and states?
I wish I had a better answer but you should watch this official Unity $$anonymous$$ecanim tutorial video if you haven't:
http://www.youtube.com/watch?v=Xx21y9eJq1U&feature=youtu.be
I think they start talking about doing animations for specific body parts at 43 $$anonymous$$utes 45 seconds.
Animations in Unity are not my strong point at all though I generally just use Legacy and use unique animations rather than trying to combine them. For example I have a run while punching animation in addition to a standing punch animation, I really need to learn how to use all the animation stuff a lot better.
But hopefully someone can give you some better answers if that video doesn't help enough.
https://docs.unity3d.com/Documentation/$$anonymous$$anual/AnimationLayers.html
Sounds to me like you can use that achieve what you are asking about
Your answer
Follow this Question
Related Questions
Animation from 3rd layer not playing 1 Answer
2D Animation does not start 1 Answer
What is the proper way to organize animator transitions to a large amount of abilities? 0 Answers
How to superimpose two animations using the animator? 0 Answers
Possible to disable or hide an entire layer of animations? 1 Answer