Animating the Scenery
Finally, we're going to add some more motion and life to our level. We'll take the two blast doors we created and animated in Blender and get those working in Unity, and we will learn how to trigger the prism bridge we created with ProBuilder and animated with Timeline.
Animating the Blast doors
You'll remember we have two types of blast doors, which I will cleverly call door1
and door2
. Each has its own embedded animations, which we defined back in Chapter 7, Prep Work: Materials, Grids, and Snapping. Let's extract their open animations the same way we did with the Mixamo characters. Here's how:
- In your Models folder, select the
door1.fbx
file and twirl it open. Select the open animation you created in Chapter 7, Prep Work: Materials, Grids, and Snapping (animations have the little triangle icon; refer to Fig 13.9). Now, duplicate it with Ctrl / Command + D. For clarity, rename itdoor1open
. - Repeat the process for door2...