In this Unity game development tutorial we're to going look at how we can add a bit more personality to a character, by playing random "Bored" animations after they’ve been left idle for a period of time.
We'll start by downloading several animations to play when the character becomes bored.
We'll then look at how to use a Blend Tree combined with a State Machine Behaviour Script, to transition to these animations at random after a period of idle time.
The project files are available to our patrons here:
► https://www.patreon.com/posts/65535482
Want to follow along? This project is a good starting point
► https://www.patreon.com/posts/62683553
The full script for this tutorial can be found here
► https://dotnetfiddle.net/ANF7BZ
Help support our work:
► Patreon: https://www.patreon.com/ketragames
► Ko-fi: https://ko-fi.com/ketragames
Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon: https://www.patreon.com/ketragames
► Twitter: https://twitter.com/ketragames
► Facebook: https://facebook.com/ketragames
Introduction - 0:00
Getting Bored Character Animations from Mixamo - 00:41
Configuring the Bored Idle Animations - 2:18
Setting up the Idle Blend Tree - 3:43
Adding a State Machine Behaviour Script to Randomly Select a Bored Animation - 5:58
Improving the Transitions between Idle Animations - 10:36
Summary - 14:59
#KetraGames #LearnUnity #UnityTutorials #UnityTips