Hi,
just had a look into the new animation state system, which looks quite a lot like the unity version.
Fine. But I am already lost with triggers. Just having an idle state should start transitions by keyboard. since its a trigger it should just start but then… it is not playing the complete animation.
Desired behavior: Set the trigger, animation plays and on end it goes back to the last state.
Current behavior: trigger is set, I see a one frame flash and it is back on the last state.
What is the correct condition to go back to a parent state after using a trigger?
Or do I need to use booleans? But then, what is a trigger for?
It starts in fightidle. You set the trigger punch so the transition conditions from fightidle to punch are all met and the graph is in state punch.
Now that it is in state punch, the transition conditions from punch to fightidle are all met because there are no conditions and therefore the graph transitions to fightidle.
If you want to play the full animation of punch, as Albertos said you need to set the exit time of the transition from fightidle to punch to 1.