user input during mecanim transitions?

Hello Guys,

I have found a problem in mecanim and I am hoping someone here can help me figure out how to solve it. I have search and search all over the internet and in the forums but I haven’t found anyone with the same question.

Here it is the problem, I have a character that can open doors when I press a button in the keyboard right? everything works well until I press the button while the character is transitioning from(walking or running) into (idle) or any transition for that matter, at this point the input doesn’t work.

Is it there a way to control the character while in mecanim transition?

Any help or clarification in this regards is very much appreciate it.

Regards,
Carlos

Hello,

I am having the same problem for different actions in a fight system. Just wanted to let you know that you’re not alone ;).
It seems that once a transition start, no other transition can happen/preempt it before it finished.

I guess a workaround would be to set a bool “Open Door” in the animator that you only reset after the character actually opened the door. This way the character goes from (walking or running) into (idle) and then into (open door). But, there will be a little delay… I can’t see a better solution at the moment.

Let’s hope somebody has a miracle solution!

I just wanted to add that even when turning off the “Atomic” parameter I couldn’t achieve the desired result (ie transitions are actually NOT atomic)…
BUT according to this thread http://forum.unity3d.com/threads/155959-Mecanim-Multiple-Transitions, you can order transition “priority” (2nd answer of UnLogick):

“Sounds like what you want is non-atomic transitions, so that you can start a jump while in the transition from idle to moving. If thats the case its just a matter of unchecking the atomic setting on the transition and order the transitions on your “old” state so that the new one (jump in this example) is located higher on the list.”

I tested it quickly and it seems to do the trick! I didn’t know about that re-ordering thing…
Hope this helps.