How to Animate Characters in Unity 3D | Blend Trees Explained: One Dimensional

preview_player
Показать описание
Learn how to animate characters in Unity 3D with dynamic animations from blend trees!

This beginner-friendly tutorial is a complete walkthrough of one dimensional blend trees and how we can use blend trees to create new animations for our characters using float parameters

ACCESS PROJECT FILES & SUPPORT THE CHANNEL:
iHeartGameDev Merch:

WANT MORE?
Interested in learning more about animating characters in Unity? Check out my growing series of tutorials:
✦ Like the vid? Please consider Subscribing!
✦ Missed out on the last episode?

SOCIAL:
✦ Discord
✦ Twitter

SERIES DESCRIPTION:
This is the fourth video in a series dedicated to understanding the fundamentals of Unity's animation system. Episode 0 was an introduction to the project and explains how to import free characters and animations from Adobe Mixamo. Episode 1 was a full break down of the Animator Component. And episode 2 explained how we can use booleans to give players control of animations! Be sure to check out the other videos in the series to continue learning!

GEAR:

►TIMESTAMPS:
Intro - 0:00
Catch up - 0:25
Set up - 0:38
First Blend Tree - 0:49
What does a blend tree do - 1:01
Float parameters - 1:24
Float titled Velocity - 1:35
First look at Blend Tree - 2:12
Motion or Blend Tree - 2:36
Selecting motion - 2:53
Animation Options - 3:10
Loop Pose Explained - 3:22
Why use Blend Trees - 4:04
Add run animation - 4:36
Testing Blend Tree - 4:45
Start Coding - 5:05
Time.DeltaTime explained - 5:41
Acceleration - 5:54
Working Acceleration - 6:12
Fixing indefinite running - 6:25
Fixing indefinite deceleration - 6:49
Working - 7:07
Blend Tree settings - 7:16
Threshold - 7:30
Visual example threshold - 7:50
Speed Setting - 8:49
Mirror Setting - 9:13
2D Blend Trees Options - 9:23
Outro - 9:47

Thank you for watching!

#indiegame #gamedev #indiedev #2020
Рекомендации по теме
Комментарии
Автор

The series so far is the most explicit Unity tutorials for me to follow along so far! You're my LIFESAVER! Thank you so much Nicky! Can't wait to see the rest of them!!!

ivyzheng
Автор

I'm diggin your music choice. Somehow it keeps me even more engaged, like I'm solving a puzzle in a videogame or something

CJRHFILMS
Автор

Needed a short introduction to implementing locomotion/blend trees in my game. Every video was unneccessarily long and didn't give info straightforward. You gave me what I needed in literal seconds by your timestamps and straight forward explanations. Couldn't have been done better - thank you!

Northwise
Автор

You know he's a good teacher when you manage to solve your own issues just with what he told you.

There was somthing wrong in my blending, arround 0.5 velocity it seemed like the feet and legs were barely moving, the animation was odd. So I thought maybe one animation wants left foot forward when the otherone wants right !

Just added 0.5 offset to running and boom, done. Only because you clearly explained what is blending and what is offset.

Seriously, congrats, i'm exited to see other videos, i'll recommend your chanel to anyone interested in video game dev. You're the first ever content creator i'll actually click the bell for haha. Thx for your work.

alpha
Автор

I have never listened to a clearer and more proper explanation on mechanim than this one. At last. This is gold

gaetanolombardo
Автор

Love how you explain every field in the animations, blend trees, etc. Really helpful!

kentrose
Автор

this series is amazing! It's dry but dense of knowledge! Thanks man, your work is precious!

chamussoide
Автор

you've gained a sub man. holy crap. im actually starting to understand code and how it works. it all looks like gibberish before this particular video. now im starting to realize what it all means in the script and how its logically written. so fascinating. thank you! I don't know if its planned in your series or not but I would love to see a video on world interaction. specifically walking toward an object and picking it up, climbing onto something, etc. thank you.

fretfret
Автор

These are extremely helpful for learning more complex animation. A couple code tips though, it's generally better to expose your fields in the inspector by adding the "[SerializeField]" attribute rather than making them public. And, for your input handlers, there is the class "KeyCode" with static members for all the keycodes, so you don't have to use strings (eg. KeyCode.W, KeyCode.LeftShift).

MarkRiverbank
Автор

i just had to take a minute out of banging my head against the keybord to say thank you for teaching the public. youre great!

brandonhooper
Автор

Nicky, while following the tutorial I found that when setting up the initial transition back from the first Blend Tree to the Idle animation, setting the Condition for the transition as Velocity < 0.05 caused the Animation to jitter/revert back to the Idle animation for a second before continuing with the walking -> running animations, this was quite confusing however setting the Condition for the transition to Velocity < 0.01 instead fixed the issue. Hope this helps anyone who came across the same issue

chief_rasko
Автор

Thank you so much! You are a lifesaver! I have 10 hours left to finish my coursework and you're helping me SO MUCH! 😭❤️

leahevehumphries
Автор

I liked and even went ahead and subscribed. I'm an old DirectX programmer and C# master who just started messing with Unity and your videos solved confusion I had about getting animations working and taught me what all the editor buttons and gizmos do. I'm doing my first Unity game prototype right now and it's getting quite sophisticated. I've done all of these things before, and used to write my own engines on top of DirectX and OpenGL, but Unity is a new tool for me. So far, thanks in part to these videos, Unity has been an absolute joy to work with. I was away from development for a few years and the industry and tech has advanced GREATLY! There's never been a more fun or interesting time to be a game developer than today in 2021!

GameDevNerd
Автор

Even though this is from 3 years ago, everything is so clear man, keep it up, great tutorials

jccfrancis
Автор

I am new to Unity and this series is amazing.
Not only is it great for teaching the concepts of animation in unity, you also do an excellent job of teaching programming basics for those that might not have them.
Thank you for your amazing work!

digital_comrade
Автор

Keep up the good work. So far your videos have been the most helpful in understanding not just "do this and this will happen" but WHY it happens, which is infinitely more instructive in learning how to use Unity beyond the limited scope of a tutorial.

tb__
Автор

We're going to be blessed by Nick again!

signalised
Автор

Hi Nicky, was frustratingly stuck for days following different tutorials then youre chanel came along.
What a life + time saver thank you so mutch can't wait to watch the rest of the tuts!
Awesome amount of info in short movies thanks again.

slsno
Автор

only 1k subs? I randomly discovered you, your videos are so high quality and cover topics in full detail and are quite systematic. I'm familiar with most of the animation system but what make you stand out from everyone else is that you cover the little nitpick details even if you aren't using them in your guide and this is what I've been looking for awhile. I've taken multiple unity courses and you are the only one covering what needs to be covered. thank you.

eliebeaino
Автор

Wow i looked at your subscribers cound and saw 3, 95 figure. I thought "nice, 4 million subs, that's why quality is so great".. And then I realized it is thousands. I feel you gonna grow rapidly, thanks for the video:)

kkrup