I have an animation state machine set up for moving a top-down character, as shown below.
For my up & down animations, I have a single sprite that I am flipping back and forth using Sprite Renderer.Flip X. I am also using this property for my right animation, as it is just a mirror of my left animation. However, I’ve found that when transitioning from one animation to another, if Sprite Renderer.Flip X is true at the time of the transition, this will carry over to the next animation for what appears to be a single frame.
I am at a loss as to how to fix this. All of my transitions between the movement animations are controlled using an integer value and have Exit Time and Fixed Duration unchecked. How can I fix this so that the Sprite Renderer.Flip X property is changed at the same time the animation is changed, rather than being carried over from the previous animation for a frame or two?