- Home /
Is there a way to turn on a transitions hasExitTime on/off through code?
I was just wondering if i could in the middle of an animation switch the transitions hasExitTime through code, I looked it up and found nothing. Something like after the swing of the first sword attack animation i would like to turn hasExitTime off through code so that a mouse click would quickly transition to the second sword attack animation, otherwise the animation would continue. But I don't want hasExitTime to be off constantly so that the user cant transition to the other animation before the swing of the first. And if there isn't, whats the best way to deal with this sort of thing??
Answer by shabrang · Sep 27, 2020 at 06:23 AM
Hello Lyquifire, Did you ever figure out how to do this? You posted it over two years ago. I have just run into the same problem and when I happily found your post I went right to look up the answers. Then I saw there were none !! Bummer !
Your answer
Follow this Question
Related Questions
Is it possible to use multiple parameters causing different transitions between two animations? 0 Answers
Animation Transitions, Mechanim, Animator Overview Gizmos. 0 Answers
Animator: Transition from any state in a Sub-State Machine to another state. 0 Answers
Default Mecanim Rig 0 Answers
Roatate animation starts from 0 2 Answers