Monday, 28 July 2014

Animator Controller

The Animator Controller is the main component by which animation behaviour is added to an object. This section describes the component in detail.




You can view and set up character behavior from the Animator Controller view (Menu: Window > Animator Controller).
or
You can just (Right Click > Create > Animator Controller)




This is what you would probably get. Then you just adjust the animation according to your animation liking

Note that the Animator Controller Window will always display the state machine from the most recently selected .controller asset, regardless of what scene is currently loaded.

Animator Parameter
Animation Parameters are variables that are defined within the animation system but can also be accessed and assigned values from scripts

  • Vector - a point in space
  • Int - an integer (whole number)
  • Float - a number with a fractional part
  • Bool - true or false value

Blend trees can also be used,it will be in my next post.


ANIMATION STATE

Animation States are the basic building blocks of an Animation State Machine. Each state contains an individual animation sequence (or blend tree) which will play while the character is in that state. When an event in the game triggers a state transition, the character will be left in a new state whose animation sequence will then take over.
When you select a state in the Animator Controller, you will see the properties for that state in the inspector,



SpeedThe default speed of the animation
MotionThe animation clip assigned to this state
Foot IKShould Foot IK be respected for this state
TransitionsThe list of transitions originating from this state

A new state can be added by right-clicking on an empty space in the Animator Controller Window and selecting Create State->Empty from the context menu. Alternatively, you can drag an animation into the Animator Controller Window to create a state containing that animation. (Note that you can only drag Mecanim animations into the Controller - non-Mecanim animations will be rejected.) States can also contain Blend Trees.(It will be shown in the next posting)

As shown in the Screen Shot below.




No comments:

Post a Comment