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

Getting started with Mecanim

When animations for both the button and door are created, they will play automatically in a loop every time you play the scene in the Game tab. They play automatically because upon creating an animation clip asset, Unity automatically generates an Animator Controller asset that is assigned to the animated object in the scene. The controller itself is part of the Mecanim system and uses a State Machine to define how and when an animation clip should play for an object. By default, it plays the animation clip at the beginning of the scene. The animations play on a loop because all new Animation Clip assets are specified as loopable by default. Neither the automatic playback nor the looping behavior are desired for the ...

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