- Home /
How to avoid double trigger behavior?
Hi there,
I've made a animator with 4 states. MoveRight, MoveLeft, MoveUp and MoveDown. Each one has a transition, from Any State. I've also made 4 triggers conditions, each one corresponding to a transition to a respective state.
After careful analysis, I've discovered that, if you set a trigger that the correspondent animation is already playing, you active this trigger, like if it was a boolean parameter. Therefore, you're supposed to set a different trigger TWO TIMES, in order to change the clip.
The solution I found to work around this, was to check the current clip, if it is the animation I'm about to trigger, I just don't do it. But that isn't a very elegant solution. I mean, isn't a trigger supposed to return to its default value automatically?
My question is: Is that a expected behavior? There is anyway I could disables this "double state trigger"?
Thank you guys, you're doing a great job helping us.