Hi,
I’m using an animator controller and my own state machine to control my player. Each state is a blend tree. I’d like to be able to :
- Check weither a transition happened or not
- Interrupt a looped animation when it ends to change the animator’s state
About n°1, the only idea I have is by using hashes comparison but I do not like this because it requires making a condition in the update.
Also, adding an event in the curves doesn’t seems like a good solution because of the number of animations (2D animations with 8 directions).
About n°2, I didn’t really find a solution for this… The only possibility I see is by following the animation cycle by using its length, and stoping when I want it and when a cycle ends. I really don’t like this one.
Btw, I didn’t find anything about blend trees’ length, how does it actualy behave ?