Using one Animation Controller for multiple objects, with different animations

I have a double door that I want to trigger the opening and closing animation with a trigger.
So there is one mesh for the door frame, one mesh for the left door and one for the right door. I’ve created an Animation Controller and added it to both the doors. I animate one of the doors to rotate to -95 deg, and the other to 95 deg in a separate Animation Clip, so I have two animation clips in the same Animation Controller.
I then use a Bool as a condition for the transition between an empty state and my open animations. I followed this tutorial:


It works for a singe door, but for my double door I can’t get both clips to play, only one of the clips plays, so that only one of the doors opens, or the same clip plays on both doors, so both swings open, but one goes in the wrong direction.

So how do I animate something like this, that has multiple objects that are part of the same animation?

Hi! @KristofferH
I was also struggling with my double doors and only left door opened, when i press E key. Then i figured it out: I use box collider in my left door which is
stretched over to my right door and when i press E key it open the left door, but also it sends message to my right door to open also. Unfortunately you cannot close them, but I only wanted it that way :slight_smile: