mecanim CrossFade behaving strangely, causes transitions in entire layer to happen instantly
Hi, I'm using the Animator.CrossFade(string stateName, float normalizedTransitionDuration)
method to transition to my two handed combat animation attacks (pressing ALT while attacking will switch between one handed and two handed animation sets).
But I'm having a really strange issue and it's to do with this method, sometimes when i press ALT the transitions from any state to another on the same layer on which the crossfade was used, become abrupt and happen instantly even though in the animator window i have not set up the transitions to do this. The crossfade itself also happens abruptly when this happens. And the transitions stay like this until i completely stop the game and run it again.
This is really bugging me because sometimes it'll work fine but after a few minutes of spamming ALT it just breaks apart. ANY help will be appreciated thank you!