2025-03-21 20:03:08 -07:00
|
|
|
# Merge Motion (Blend Tree)
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|

|
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
The merge motion component allows you to merge multiple blend trees into a single FX layer.
|
2023-12-22 17:17:40 +09:00
|
|
|
This is an advanced component that allows for building lower-overhead animators by merging multiple gimmicks into a
|
|
|
|
single layer.
|
2025-03-21 20:03:08 -07:00
|
|
|
It can also be used to set an animation that is always running.
|
|
|
|
|
|
|
|
:::info
|
|
|
|
|
|
|
|
Prior to 1.12, this component was called "Merge Blend Tree". In 1.12 it was expanded to support merging animation clips
|
|
|
|
as well; as such the name was changed to "Merge Motion". Existing assets created using 1.11 or earlier's Merge Blend Tree
|
|
|
|
will automatically be upgraded to use the new Merge Motion component.
|
|
|
|
|
|
|
|
For API compatibility purposes, this component is still internally called `ModularAvatarMergeBlendTree`.
|
|
|
|
|
|
|
|
:::
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|
## When should I use it?
|
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
You should use Merge Motion when you have a motion (animation clip or blend tree) that you want to be always active
|
|
|
|
n the avatar.
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|
## When shouldn't I use it?
|
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
You should not use Merge Motion if you need to disable/enable the Motion, or have control over motion time.
|
2023-12-22 17:17:40 +09:00
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
## Merging a Blend Tree
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|
First, create a Blend Tree asset. You can do this by right clicking on the project window and selecting
|
|
|
|
Create -> BlendTree.
|
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
Configure your blend tree as desired, then add a Merge Motion component and specify the Blend Tree in the Motion
|
|
|
|
field.
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|
You can configure Path Mode and Relative Path Root similarly to Merge Animator; for more details, see the
|
|
|
|
[Merge Animator documentation](merge-animator.md).
|
|
|
|
|
2025-03-21 20:03:08 -07:00
|
|
|
## Merging animations
|
|
|
|
|
|
|
|
Simply put the animation in the "Motion (or Blend Tree) to merge" field. The animation will be constantly played.
|
|
|
|
|
|
|
|
## How motions are merged
|
2023-12-22 17:17:40 +09:00
|
|
|
|
|
|
|
Modular Avatar will create a new layer at the top of the FX controller. This layer will contain a single state, with
|
2025-03-21 20:03:08 -07:00
|
|
|
Write Defaults on, and containing a Direct Blend Tree. Each merged motion will be attached to this Direct Blend
|
2023-12-22 17:17:40 +09:00
|
|
|
Tree, with its parameter always set to one.
|