Mechanim calling out an arm from body?

Here is the situation.
Working on a runner. I have the character (2d sprites) running.
When he shoots it has to “call” out another animation, so the arm
has to come out and “shoot”
But the running sprite has just a standard arm movement.

How do I go about calling another animation state of shooting?
An arm animation? or the whole body?

So there would be two sprites running at the same time?

Would this be a different animation state? I call out the parameter?

I am fairly new with mechanim so excuse the confusion here. But I am lost on this…

Thanks

You can use a layer with an avatar mask that will affect only the arm in your hierarchy, set this layer to override and then create an animation clip that will animate your arm,

Create two state in this layer, the first state should be empty(no animation clip) and the second one should have your arm animation clip. Create a transition from empty state to shooting state based on some trigger or condition that you want.

Basically and empty state in a override layer will override nothing, so the animation from your base layer will be unaffected until something trigger the shooting state.

1 Like

Mecanim.Dev
Some of it makes sense. I will try that this weekend. Thank you very much.
Do you know of a sample somewhere in the asset store or in the forums?
(what key words should I look for?)
Thanks

Look on the asset store for the project Mecanim example scenes

Open the scene Animator Controller

Take a look at the controller on character U_Character_Ref, it does use exactly the same setup that you need
Best regards,