The first thing to distinguish between two concepts, action fusion and action mixing
1 Action fusion refers to the effect of smooth transition when one action is played to the end, and then another action is broadcast.
2 Action Mix means, originally is a number of independent and complete action, to use one of the actions to control the role of part of the skeleton, another to control the role of another part of the skeleton, to achieve different parts of the body play different movements, the purpose is to save the movement of resources, do not have to make a separate new action
This is just a mix of action, action Fusion, and other articles.
First, prepare the art resources.
1 role model FBX, with no action information, only model and skinning and skeleton information, max exports to export avatar
2 individual action files Run.anim and Attack.anim
Make animator
1 Create animator Controller animation controller, hang in animator component of role
2 Double-click Animator Controller to open the animator panel, create a new Uplayer and downlayer two layers to make a mix of upper and lower halves
3 selected Uplayer, Attack.anim dragged in, selected Downlayer, put Run.anim dragged in
4 new up and down two avatar mask to identify the connected skeleton
5up.mask's transform mask use skeleton the avatar from the selected role, select the upper body skeleton in the role skeleton in the import skeleton, (select the upper body root node, the child node is automatically selected)
In the transform mask of 6down.mask, use skeleton the avatar of the selected role, select the lower body skeleton in the role skeleton in the import skeleton, (select the upper body root node, the child node will be selected automatically)
7 Up.mask and Down.mask respectively to Uplayer and Downlayer.
So when Uplayer and Downlayer's weight is 1 o'clock, the character plays the attacking action on the upper body, playing the run action in the lower body.
Other Notes
1base layer can establish some basic action, to switch between normal action, by setting parameters to control movement switch,
2 lower layer are used for action mixing, to establish different avator mask, to correlate different skeletons, to give different layer, different layer to place different movements-to control the mixing or deactivation of each layer by setting layer weight
Layer Property Features
The control of the weight action, the lower the layer weight than the upper layer weight control right
Avatar Mask used by mask
Blending override overlay upper additive overlay upper Layer
SVNC Check, you can choose to sync to the other layer, the synchronization of the layer all copied over the can add their own