hey folks
i’m stuck at wondering what is the best way to organize anims in the animator.
let’s say i have a basic “locomotion” set and i want to add a “combat” set with proper anims
until now i tested combat using “layers” and masks so the character can hit etc
are layers the best option ? or should i use more blendtrees ?
or should i use a separate animator component to “override” the the locomotion set ?
Using a separate Animator component to separate runtimeAnimatorController will reset the parameters every time you switch, so that’s probably not the best option.
I’ve found that it works well to use a single Animator, a single animator controller, and a single layer for each avatar mask (e.g., whole body, upper body, and head).
In each layer, create a separate sub-state machine for each set (e.g., unarmed, sword, bow, pistol, rifle, etc.). To change sets, transition to the corresponding sub-state machines.
It’s not perfect, but it has a few advantages over blend trees and sync layers. In particular, you can have completely different animation states in each, or at least animations with different speeds and lengths.
Take a look at Opsive’s Third Person Controller. The developer posted screenshots of some of the animator controller’s setup in the forum thread. You can get an idea of how it works from the screenshots.
Let me just say this. Pretty much every single character I’ve animated has a unique set up in Unity, depending on the character, the game, and the factors involved in that game. Throw in coding preferences, and I’m not sure it is possible to say any way is better or worse.
hi guys, sorry for late reply…
yep, i figured it out, and found that having a unique animator for one character is the best option.
then , as said, using layers and layers with states inside them triggered by parameters.
thanks a lot for your help guys, very appreciated