Day 99: Character Animation Part 2

Objective: Add the animation to the character

Yesterday we downloaded the animation we will use and set it up to be used. Today we will add it the model to display the animation. The very first thing we need to do is create an animation Folder for the Game.

Inside that folder we will right click and create a animation controller.

I named mine Player_Anim_Controller. Once it is done and it is selected, under the Animator Window we should get a couple of states as seen below.

Now we need to take the controller and assign it to the model animation component.

Once that is done, move back to the Animator and drag in the Animation we duplicated in yesterdays article. We will now have an orange Idle state showing up.

If we play the game the animation will only run once.

The reason it runs only once is because it is not set to Loop. To fix that go back to the animation in the project view, select it and in the inspector window set Loop to true by checking the box.

Now once we run the game he will play the animation forever, as long as the game is running. We have added an animation from mixamo and got it working on our model!

Thank you for reading and have a wonderful day!

--

--

--

I am passonate on learning to program and use Unity to become a skillful Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Open the lock problem with JavaScript

How to integrate music into your React app

Introduction to JavaScript

5 steps to add drag and drop in your website

https://www.youtube.com/watch?v=Vy9U8SEG7NY

Building MicrofrontEnd Apps Using Angular Elements.

Learn hoisting in JavaScript. The practical way.

8 Npm Commands You Need To Know as a Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tyler Smallwood

Tyler Smallwood

I am passonate on learning to program and use Unity to become a skillful Unity Developer

More from Medium

The new Input System: Create your first input asset

Using Light Layers in Unity

Loading Scenes In Unity

How to switch between Cinemachine cameras in Unity