Mecanim empty state on override layer, corrupt transition

Hi,
since 4.3 i have ugly looking animations in my game
(not exactly sure if 4.2 had them too, updated fast).

I have a humanoid setup with 3 layers in Mecanim.
First layer is full body animation, second layer is lower, third is upper body (using Masks).
Second and third layer are set to override and fade back to an empty state, to allow full body to take over again.
What happens is, where it transitions out of the empty state and in there’s a second of ugly and twitchy transition.
To me it seems that it’s trying to transition to some default position (with the empty state) instead of letting the lower layer take over again by the looks of the transition preview.
In an earlier version of Unity it was fine.

Any idea how i could fix that (or a confirmation that this is a known bug)?

ping

ping nr. 2

I am seeing a similar issue. Judging by other posts, this is indeed a bug and was introduced in 4.3

http://forum.unity3d.com/threads/213050-Transition-into-empty-state-Animator-Unity-4-3

I’ve upvoted the bug report a month ago, the status was changed to fixed, so we can only hope it has been fixed. No way of knowing until the next version is released, which could take quite a while considering that this is a critical bug, yet we have not seen a release for almost a month.

I’ve currently come up with a different messy workaround that involves the Animator.Crossfade() function. Instead of using override layers, I am forced to, in the script, record the current state, then use the crossfade function to transition to like say, an attack animation, and then crossfade back to the state it came from. All animations are of course, on the base layer. If any of you have deadlines coming up, this workaround may help. It’s very messy though, since now I have a state machine and numerous unlinked states all on the base layer.

I am baffled as to how or why this bug could have been introduced. It seems the emphasis is shifting to 2D game development. But we all feel your pain, ValooFX.

Also worthy of note, if one of your override layers has a body mask that only allows the upper body to be animated, then this glitch does not manifest itself.