O'Reilly logo

Unity Animation Essentials by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating animations for the button and door

Before we start working with Mecanim directly, we'll need raw animation data from which to work; that is, we'll need two complete animations, one for the button, and one for the door. When the button is pushed, the door will open. Therefore, we'll need one animation for the button as it moves inward in its socket when pushed, and then returns to its neutral position. We'll also need a door-open animation so that the door rotates around its hinge, opening outwards. The latter should play only after the button is pushed. Both of these animations may be created directly inside the Unity editor using the Animation window, as explained in the previous chapter. For this reason, I'll cover the animation process ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required