Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Unity Animation Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Unity Animation Essentials

Unity Animation Essentials

By : Alan Thorn
3.8 (10)
close
close
Unity Animation Essentials

Unity Animation Essentials

3.8 (10)
By: Alan Thorn

Overview of this book

This book is targeted at hobbyists, students, and game development professionals familiar with the Unity basics, looking to extend their skills and knowledge in the field of real-time game animation. You will need to be familiar with level design and basic scripting in C# and have a good knowledge of game development.
Table of Contents (9 chapters)
close
close

Preparing to script with Blend Tree animations


Throughout the previous sections, the Mecanim animator controller and its associated Blend Tree were fully configured to play a complete character animation. The different states (such as walk, run, idle, and so on) should not, however, be triggered arbitrarily. Instead, they should be triggered based on the player input through the WASD keys. To achieve this, we'll need to use a script, linking keyboard input to the Mecanim parameters. To get started, be sure that you've created a scene, you have a character, and you've assigned the Animator Controller asset to the Controller field of the object's Animator component. This ensures that the character model in the scene uses the appropriate Mecanim controller.

Assigning an Animator Controller to the character

Next, we'll need to create a C# script file that reads the player input and maps it to the controller parameters, playing the animation. To create a script, right-click inside the Project panel...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Unity Animation Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon