Animation not playing with animation.Play

Hi! I’m having trouble getting one of my character animations to play using the animation.play() command. The model is exported from Blender, and all animations are properly set up in the NLA editor. All animations previews’ play fine but I can’t get one specific to play from the script. (But the other 2 work!) All animations have the same settings. Here is the code in which I call all three animations.

if(absJoyPos.y > 0.75)
	{
		animation.Play(runAnim);
		Debug.Log("InitializeRun");
	}
if(absJoyPos.y > 0.05)
	{
		animation.Play(walkAnim);
	}
if(absJoyPos.y < 0.03)
	{
		animation.Play(idleAnim1);
	}

All of them work except the first one (runAnim). They are all linked to animations, and I quadruple checked that the variable is indeed linked to the animation clip. The Debug.Log also works properly. I have been troubleshooting for hours. All help will be greatly appreciated!

You are playing the run animation, but then you immediately check “> .05” which is true, and you play the walk animation instead, stopping the run animation. Make each if statement after the first an else if, since all if statements are mutually exclusive.