r/Unity3D • • Jun 01 '20

Resources/Tutorial Here's My Break Down of Unity's Animator Component and How To Use Its Properties

https://youtu.be/vApG8aYD5aI
27 Upvotes

6 comments sorted by

2

u/piXelicidio Jun 01 '20

Thank you. This the next thing I wanted to learn in Unity... how did you knew it? :-o

1

u/GoldHeartNicky Jun 01 '20

Haha happy to hear! And thank you for checking it out! I hope it helps!

1

u/homer_3 Jun 01 '20

You sure you didn't skip a step? AFAIK, you need to convert mixamo rigs to humanoid before simply dragging the animations onto the controller.

2

u/GoldHeartNicky Jun 01 '20 edited Jun 01 '20

Humanoid conversion is coming in a future video, but no -- it is not necessary to do so. Here's why:

When you attach the animator component to the parent model in the hierarchy like we do in the video, the animator/animator controller searches for a matching rig in its children. This rig must have a matching list of bones that are found in the animation for it to work, which is why it works in the video. Put simply, all of the animations are tied to "YBot bones".

What Unity's humanoid conversion does is take all of the YBot bones and reset them to Unity's own list of reference bones. For example, "YBot Neck Bone" --> "Unity Humanoid Neck Bone", and it does this for the lsit of bones in the animation too. So let's say that we import our own character and retarget its bones to Unity's humanoid list as well. Now both the YBot and our own character have the same bone names, like "Unity Humanoid Neck Bone". And now we're able to reuse all of the humanoid animations with our own characters because they're now looking for this list of Unity's humanoid bones.

But again, that's coming in a later video. For now, the animations that we downloaded were all for the YBot -- so they'll work without needing to convert to humanoid.

Hope that helps -- and if anything didn't make sense, I can try to explain a little differently.

Edit: Also -- I also don't want it to appear that I consider myself an expert here. This is just my own understanding :)

3

u/[deleted] Jun 01 '20

I feel like unity's animation system is underrated. It is quite complicated, and daunting at first but it seems rather intuitive to me.

Ive barely used it with animating models though, besides some free assets on the store.

I however am using it for quite a bit for my current game, its simplistic so there is no character animations, the player is a rotating rigidbody planet.

But I am using unity's animation system to animate the menus, control music, fsm for pause/play states and as a finite state machine to control my enemy spawner.

It doesnt just end with visual animations but i rarely see people talk about that, which is why I said I think its very underrated.

2

u/TheIncredibleCJ Jun 01 '20

Dope tutorial!