Injured Animations using Layers (Unity Tutorial) @KetraGames
Injured Animations using Layers (Unity Tutorial)  @KetraGames
Uploaded November 2021 | Updated November 2026, 3 hours ago
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:
► patreon.com/posts/58927028

The final script can be found here
► dotnetfiddle.net/34uFdI

Help support our work:
► Patreon: patreon.com/ketragames
► Ko-fi: ko-fi.com/ketragames

Follow us:
► Ketra Games: ketra-games.com
► Patreon: patreon.com/ketragames
► Twitter: twitter.com/ketragames
► Facebook: 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
Injured Animations using Layers (Unity Tutorial)Create a Reusable Health System (Unity Tutorial | 2D Top Down Shooter)Converting a Project to URP (Unity Tutorial)How to Code Jumping in Unity – Quick & Easy GuideRotating Around an Object (Unity Tutorial)Make Your First 3D Game | Beginner-Friendly GuideRagdoll to Standing Improved! (Unity Tutorial)Start vs Awake vs OnEnable (Unity Tutorial)High Jump and Low Jump (Unity Tutorial)Rotating a Character in the Direction of Movement (Unity Tutorial)Placing Objects on the Ground (Unity Tip)Stand Back Up! How to Reverse Ragdoll Physics (Unity Tutorial)
Ketra Games |

Injured Animations using Layers (Unity Tutorial)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER