Two animation for one object ?


This robot have two animations. one for legs other for the chair. Now I want to run both animations but what I get is one second only of animation !.

    public Animator vb;
    // Use this for initialization
    void Update () {
        vb.Play("Armature|attack"); // for the chair
        vb.Play("Armature|idle"); // for the legs
    }

How to solve this ?

Is it required to separate the State? so that you’ll just call only one animation

In order to blend animations the way you want to, you will need to set up another layer and an avatar mask. I would recommend watching at least these two videos regarding the set up:

Then if you want even more information, there is plenty to see on the Unity Learn page for Animation:
Unity Learn - Animation