Version: 2018.3 (switch to 2019.1 )
2D Blending
Additional Blend Tree Options
Other Versions

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 inspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
See in Glossary
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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答