Avatar mask depending on certain conditions
Hello everyone,
I'm having some issues configuring my Animator.
I have a character that must be able to:
To perform a full body running animation
To perform an upper body attack animation and a lower body running animation at the same time (if the player attacks while moving)
To perform a certain animation, such as swing a sword, using the full body if the character is not moving
I'm approaching this using different layers on the Animator. The one which has the highest weight is masked for it to use only upper body with an Avatar Mask, and it is here where the attack animations logic is placed.
This works great for the points 1 and 2, but point 3 is not happening because the attack animation won't ever affect the lower body since it is masked.
My questions are:
Can Avatar Masks be modified or replaced depending on certain conditions such as if the character is moving or not?
Is there any easier approach to solve this?
Thank you very much.,Hello,
I'm having issues configuring my Animator.
I have a character that should be able to perform a different animation in the upper body while running using only the lower body; for example, swing a sword. But, at the same time, this same swing sword animation must be full-body when the character is not moving (idle). And also, the running animation is full body when the character is not attacking.
I'm trying to implement this using different layers of the Animator. The one with the highest weight is masked using an Avatar Mask for it to only affect the upper body. In this layer is where the Attack animation and logic is placed.
My problem is that, whenever the character is idling and the player performs an attack, the attack animation must affect to the lower body too. And with the layer masked approach, this is not happening.
My question is: Can Avatar Masks be modified or replaced in the layers during runtime in certain conditions? It would be easy to set a full body mask while idling and, when the character starts moving, set the only upper body.
Is there a simpler way to do this?
Your answer
Follow this Question
Related Questions
Avatar mask changes direction of animation 1 Answer
Avatar Mask doesn't do anything 0 Answers
Disable Avatar Mask 1 Answer
Avatar mask affects on unselected bones 1 Answer
Model does not play animation 0 Answers