Learning the Unity Animator

Club Hit

Today in Ant’s lesson we were told to begin to learn the animator in Unity whilst also coding a trigger for it, to do this we used the aid of a few tutorials that Ant had given us to make door open when a switch is clicked, however, I decided to expand upon these to get what you see above.

To begin with I parented the club to the character controller in the starting position. Then I made these animations and intimation controller.

Cap of animators

I then set the key frames for the ClubDown, ClubUp and a single key frame for ClubIdle which it will stay on when the animation is not activated.

Cap of animate

This is how I set up the animator and then set it up with some code that activates the animation using the toggle tag when the mouse is clicked.

Cap animation code



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s