Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Unity 5

You're reading from  Getting Started with Unity 5

Product type Book
Published in May 2015
Publisher
ISBN-13 9781784398316
Pages 184 pages
Edition 1st Edition
Languages
Author (1):
Dr. Edward Lavieri Dr. Edward Lavieri
Profile icon Dr. Edward Lavieri

Previewing animations


When our game is being played, the characters will all have idle animations that play when the character is idle. The eat animations will be played when there is food to eat or water to drink. Colt's walk animation will be played in response to keyboard or mouse input. We'll add scripts that handle Colt's "take" animation, as well as the talk animations for the two farmers.

Unity provides us with the ability to preview animations without having to complete the game first and add our scripts. Our game has 16 animations, so being able to preview them without programming them into our game is a great time saver.

Let's preview Colt's animations. The steps are the same for all animations. In the following steps, we'll focus on the take animation:

  1. In the Project view, navigate and select Assets | Farmer Boy | FarmerBoy_Take.

  2. In the Inspector view, click on the Animations tab, as shown in the following screenshot:

  3. In the Inspector view, click and drag the expand section bar upward...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}