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

Handle SPA (VueJs, React, Angular) routes with Laravel router

From JavaScript to Go: A Personal Experience

Spread in Array Literals — JavaScript

Setup authentication with React +Auth0 + Apollo Server

JWT Auth in Phoenix with Joken

Making Better Multi-language Squarespace Sites

Making your website fast & offline available with a service worker

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

Platformer: Player Animation Part 3

Creating An fbx Emission Layer For Unity Using Photoshop & Blender

Merging the Enemy functionality

Creating a Physics Based Character Controller in Unity