Can you use blend trees in a 2D game?
My tutorial video covers blend trees with 2D sprites and animations. Blend trees might seem like an odd choice for a 2D game since 2D animations are, usually, discrete and do not have the range of motion a 3D model might. However, blend trees are a great way to keep your animation state machine clean and simple.
What does a blend tree do in Unity?
Blend Trees are a special type of state in an Animation State MachineThe set of states in an Animator Controller that a character or animated GameObject can be in, along with a set of transitions between those states and a variable to remember the current state.
How to add a child to a blend tree?
When active, the children’s thresholds are automatically spread between 0 and 1. Utility function to add a child motion to a blend trees. Utility function to add a child blend tree to a blend tree. Utility function to remove the child of a blend tree. Should the object be hidden, saved with the Scene or modifiable by the user?
How are blend trees used to blend animation?
Blend trees are used to blend continuously animation between their childs. They can either be 1D or 2D. Parameter that is used to compute the blending weight of the childs in 1D blend trees or on the X axis of a 2D blend tree.
Which is an example of a blend tree?
Blend Trees A common task in game animation is to blend between two or more similar motions. Perhaps the best known example is the blending of walking and running animations according to the character’s speed. Another example is a character leaning to the left or right as it turns during a run.
Why do you need blend trees in Unity?
However, blend trees are a great way to keep your animation state machine clean and simple. A normal animation state machine without a blend tree can get incredibly complex very quickly. Consider this image of an animation state machine that handles 2D walking and idling in 4 directions without blend trees.
What are the different types of 2D blending?
The 2D blending types blends the child motions according to two parameters. The different 2D Blend Types have different uses that they are suitable for. They differ in how the influence of each motion is calculated.