Player Animation in Unity
Adding animations to the game.
Objective: download an animation from mixamo, make the setup to use it in unity and add it to the player.
For now we have a static player with walk and jump functionalities, but we want to add some live to the character by adding an idle animation. For this example you have to know that this is a model downloaded from Filebase and most of those models are made to work with mixamo animations.
So first, mixamo is a website where you can download animations and use them for free in your project. Go to https://www.mixamo.com/ and search for the type of animation that you want like idle in this case. Then just download it and save it in any place of your assets folder.
An important step is to select the downloaded assets and set the rig animation type to humanoid.
Within the package there is an animation but we are not able to modify it in the inspector. To solve this we have to duplicate the animation and place it in another folder in our project.
Now we can modify the animation, in this case we only need to check the loop time.
Finally, we have to create an animation controller, within it drop the idle animation and assign the controller to the animator component in the model.
And that’s it!!! We have a functional idle animation.