Home Artists Posts Import Register
The Offical Matrix Groupchat is online! >>CLICK HERE<<

Content

Hi everyone, we've just released a tutorial looking at animation layers in Unity, and how to use them to transition from healthy to injured animations as the player health decreases. Hope you find it useful.

Files

Injured Animations using Layers (Unity Tutorial)

In this Unity tutorial we're going to look at how we can use Animation Layers in Unity, to transition to injured animations as the health of the player decreases. We'll start by setting up a basic scene with a character that transitions from idle to running. Then we'll add a synchronised animation layer that contains injured versions of the character animations. Finally, we'll look at how to create a script that allows us to smoothly transition between the healthy and injured animations, based on the player's current health. The project files are available to our patrons here: ► https://www.patreon.com/posts/58927028 The final script can be found here ► https://dotnetfiddle.net/34uFdI 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 Downloading the Assets from Mixamo - 0:22 Adding the character to the scene - 2:24 Setting up the animations - 2:56 Adding an animation layer for the injured animations - 4:46 Adding UI to display the health of the player - 6:10 Creating a script to change the animation layer weight - 06:59 Making the transition smoother with SmoothDamp - 10:49 Setting a maximum for the injured animation layer weight - 12:09 Summary - 13:16 #KetraGames #LearnUnity #UnityTutorials #UnityTips

Comments

No comments found for this post.