I add a new character to my game using legacy animations.
A lot of animations are working perfectly, like death, evade, damage. But the attack and cast animations are not working.
Also, the walk/run movement when the enemy character moves to attack the player is not working too.
For what the option "Animation Layer" is used for?
Higher layers will overrule lower layers, so a good setup would be, e.g.:
- idle: -1
- walk, run, etc.: 0
- damage, evade, etc.: 1
- attacks, death, etc.: 2
The game tutorials use a similar setup (tutorial 3 and tutorial 20).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Now I set an attack for Mecanim and Legacy animations and everything works.
I add a "Wait" event before the combatant animation to avoid the problem with the Mecanim animation.