A very useful feature of the Mecanim system is the Blend Tree, which allows you to easily blend between two or more clips that can be controlled by a single float
value. In fact, what if we plan to have our character switch between the idle, walk, and run states? With a Blend Tree, we can have the character's speed value take control of the conditions to switch between them, more or less as we did to switch between walking and running.
Follow us with the next recipe to learn how to use Blend Trees!
As we don't want to mess up the clips and transitions we created in the previous recipes, let's assume we are working with a clean animator controller. You can create a new one or clear the one we worked on before.