- Home /
How do i get my transition to work properly
What i want to achieve:
The entry/normal state is idle. If start(trigger) is set to true a small animation should play. After the animation it should return to idle. I already have a script which handles the trigger properly.
What i currently have:
I connected entry to idle with no special settings. I connected idle to transition with the condition start. Then connected transition back to idle.
The problem:
When the trigger is set to true the transition animation doesnt happen at the same time but at a around 1 second delay. It does make sense from unitys visualization(the idle animation(nothing) plays for 1 second and then the transition animation). Ive already toyed around with the settings but nothing seems to help. I also actually dont need a transition. I just need "if this, play this animation", but i cant seem to do this without a transition.
My animation name is transition, ive made it bold so dont confuse it with the unity transition.
Answer by hectorux · Nov 02, 2018 at 12:38 PM
Quit in the animator the exitTime, this makes always to stay in that moment to exit the current animation. Also you can change the transition duration
Your answer
