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)
↧