Hi everybody! I have a character, controlled by mechanim animator+script. I'd like to have an opportunity to switch animator off and then to switch it on. The first issue is easy, but I haven't managed to implement the second one yet. I tried just to set the 'enabled' property to 'true' from the script. I also tried to make an animation state with an empty mask. But all these things don't work properly. The animator remains disabled.
By the way, I need this to switch between a pure ragdoll and an animation-controlled character. So I thought about making some kind of a switcher: ragdoll on - animator off / ragdoll off - animator on.
Thanks beforehand for help.
↧