From the course: Unity: Interactivity for AEC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create animation triggers

Create animation triggers - Unity Tutorial

From the course: Unity: Interactivity for AEC

Start my 1-month free trial

Create animation triggers

- [Narrator] With the animation clips in place, we can now set up our animator. I can go to the project window and under animation, I should have an animator called doors_r and that matches this game object that we created. Let's go ahead and double click on that and it should open the animator window. I can zoom out of this window here. As you can see, we have two clips here. We have proximity closed, proximity open. All I need to do is set up the connections for this. I'm going to go ahead and right click and do make transition. I'm going to go transition for proximity closed to open. And then one that goes back. If I were to play the game, you'll see that this just kind of cycles between those two and that's not really what I want. I'm going to hit escape and stop that game. We need to control these transitions. We've done this before, but let's go ahead through this one more time. We're going to go into this sidebar here and make sure we're on parameters. And then I'm going to hit…

Contents