read

2 Mecanim

  • Find source project Tutorial_2_Animation in Shooter

Create a new scene

  • Animation clips are imported from an external source or created within Unity.
  • The animation clips are placed and arranged in an Animator Controller.
  • The rigged character model has a specific configuration of bones which are mapped to Unity’s common Avatar format.
  • When animating the character model, it has an Animator component attached

Mecanim

Animation Transitions

Use parameters to control state transit. The parameter can be retrieved through script.

Using multi-layer animation.

Mask

The Mask property to specify the mask used on this layer.

For example if you wanted to play a throwing animation on just the upper body of your model, while having your character also able to walk, run or stand still at the same time, you would use a mask on the layer which plays the throwing animation where the upper body sections are defined.

Set the mask to the new layer

Use mask in a additive layer that exclude legs.

When transit to a animation clip in this layer, it would only replace the animation of upper body.

Next turoial please click Actor AI.

More details, please visit the project here

Blog Logo

Honglei Han 韩红雷


Published

Image

Honglei Han 韩红雷的主页

Honglei Han from CUC 中国传媒大学 游戏设计 韩红雷 科研信息 所带课程 个人介绍 开源项目 创作的部分古体诗 Unity 3D 游戏引擎 Game Engine 游戏开发 计算机图形学 虚拟现实 Virtual Reality 程序设计 Programming

Back to Overview