Legacy Documentation: Version 5.2
2D Blending
Additional Blend Tree Options

Direct Blending

Using a Direct Blend Tree allows you to map animator parameters directly to the weight of a BlendTree child. This can be useful if you want to have exact control over the various animations that are being blended rather than blend them indirectly using one or two parameters (in the case of 1D and 2D blend trees).

A Direct Blend Tree with five animation clips assigned.
A Direct Blend Tree with five animation clips assigned.

When setting up a direct blend tree, the inspector allows you to add motions to the motion list. Each motion should then be assigned a corresponding parameter to directly control its blend weight in the tree. Read more about creating Animator Parameters here.

In effect, this Direct mode simply bypasses the crossfading, or the various 2D blending algorithms (Freeform Directional, Freeform Cartesian, etc) and allows you to implement whatever code you like to control the mix of blended animations.

This can be particularly useful when mixing blendshape animations for facial expressions, or when blending together additive animations.

The blend weights for each clip can be blended arbitrarily.
The blend weights for each clip can be blended arbitrarily.
2D Blending
Additional Blend Tree Options
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961