Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Getting Started with Unity 5

You're reading from   Getting Started with Unity 5 Leverage the power of Unity 5 to create amazing 3D games

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781784398316
Length 184 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Dr. Edward Lavieri Jr. Dr. Edward Lavieri Jr.
Author Profile Icon Dr. Edward Lavieri Jr.
Dr. Edward Lavieri Jr.
Arrow right icon
View More author details
Toc

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
Visually different images