Hello,
When a state changes and the transition duration is 0 the behaviour order is:
Current state OnStateExit
New state OnStateEnter
But when the transition duration is > 0
New state OnStateEnter
Previous state OnStateExit
I (and i know other people who agree) find this annoying that with duration > 0 the new state OnStateEnter is called before the previous state OnStateExit is called.
I would like to use the animator behaviours for more things and not just for animations but currently for me it’s almost usless as a normal state machine if the next state Enter is called before the previous state Exit is called, because i have to make workaround checks to make it usable for me.
So i would like to request that they either change the order so that it is always called in the order OnStateExit → OnStateEnter no matter if the duration is 0 or > 0, or that they make additional methods to override which are called in this order so that everyone can use the method that they need. (But honestly i see no situation where it would make any sense that the next state enter is called before the current state exit, because normally in a state machine the state exit is used for ‘cleanups’ and if i do the cleanups after the next state is already started it doesn’t really make sense because it’s already to late)
So what’s the best way to request such a change/feature, do they read these forums or can i request this somehwere else?