Question by
Nirvan · Feb 28, 2020 at 09:10 PM ·
animatoranimator controllerstate-machinestate machine
Why StateMachineBehaviour not calling OnStateExit when doing animator.Crossfade through code?
I made StateMachineBehaviour which is taking off certain restrictions from my character when StateExits but OnStateExit is not called when I change animation by doing animator.Crossfade. Why? OnStateMachineExit is not working as well. Is there possibility to call something when changing animation like that? For now I couldn't find way for this. (Unity 2018.4)
Comment