mecanim why change state

hi all

this is my animator.
when im in sword attack state it must not change state when attack is greater than 0.1.
but when i assing walk 1 then it go to play walk.
has mecanim priority?
why it change state?
thankful.

We’d need to see the transitions from Sword Attack back to Idle to answer that, I think.


this is swordattack transitions.

I see you are using sub-state machine, in my memory, that has broken my whole state machine one time(After I copy states from base to other subs), so i have no courage to use sub-state machine before the future version.

I guess maybe you can try without “sub-state machine” to see whether it still has issue.

Seems to me an attack would be a bool not a float.
Maybe that’s where the problem is?