When an animation starts looping, it can't transition to a non-looping animation.

Hello, I am trying to create a melee combat system for my game using the animator in unity 3D. So far, I have made a simple animation tree and have gotten the transitions to partially work. Here is a picture of the tree and the conditions:
8805793--1197622--upload_2023-2-14_9-38-49.png8812006--1198909--upload_2023-2-14_9-39-16.png8805793--1197631--upload_2023-2-14_9-39-35.png8805793--1197634--upload_2023-2-14_9-39-51.png

The animations usually transition between each other fine, but when the Idle and walking animation start looping (if you are doing these actions for an extended period of time), they don't transition to the attacking animation when the attack input is received. I am not familiar with all the animation settings, so I just want to be sure that I don't have any setting off that I need on. Thanks in advance for any help!

Hey,

There isn't really much information to go on here. If you could take the same screenshots while the issue is actually occurring, that would be really helpful.

Start your game, click on the object in the hierarchy with this animator, and take a screenshot exactly as you did here of the animator window while walking is stuck as you described.

In this screenshot, the idle animation is looping and the attack animation can't be played.
8811550--1198789--upload_2023-2-16_9-10-3.jpg

here are the settings for the Idle Animation
8811550--1198792--upload_2023-2-16_9-11-35.png

Here are the Settings for the Attack Animation
8811550--1198795--upload_2023-2-16_9-12-23.png


Really, what I need to see is the issue occurring with the parameters and conditions showing like in this screenshot you took earlier:

8812006--1198909--upload_2023-2-14_9-39-16.png

Also, make sure that you have the idle to attack transition selected so we see the correct conditions (or whichever transition isn't working).