Mecanim animation becomes stuck on object disable.
Let's say I have a gun object, that is disabled, not destroyed, when weapons are switched.
Let's say that the hand holding the barrel moves during an animation to, say, grab the magazine.
I have an issue where switching the weapon during this time will reset the animator to idle, like it should, but the transform of the hand gets stuck.
So if the hand is on the magazine, and I switch between weapons, the animator claims the idle is playing, but the hand is stuck on the magazine.
Whats stranger is that if you were to do another animation that moves the hand, it works fine, but then the hand moves back to the magazine.
Now, the animation itself isn't wrong. If you don't switch the weapon, it will grab the magazine, replace it, move back to the barrel, and the normal idle will play again.
Is there a way to completly reset the animator on object-enable, so it will play the idle animation correctly?