- Home /
mecanim boolean doesnt change
i am trying to make my character jump, inside the mecanim i have a boolean "Jump", when i print to console the prints correctly what should be happening, but the character keeps jumping and jumping and doesnt change to other animations.
//Jump settings
if (Input.GetButtonDown ("Jump") == true)
{
animator.SetBool("Jump", true);
}
if (Input.GetButtonDown ("Jump") == false)
//else
{
animator.SetBool("Jump", false);
}
print (Input.GetAxis("Jump"));
am i missing a step? should be just with that if statment?
thanks guys.
Do you have other booleans parameters in your animation controller?
Is your jump animation set to loop? How is your blend tree for animations?
Additional details about the settings of your animations is welcome. :-)
yes, i am only setting up in the animator "Speed" as float. and "Jump" and a boolean
the clip of the animation is set to loop, and the rest of the togles are off.
does this mean anything?
thanks guys.
Your answer
Follow this Question
Related Questions
Why will this boolean not go back to false? 0 Answers
How to check if trigger from mecanim is true or false. 1 Answer
touchCount to jump and create/destroy joints ios 0 Answers
Problem with jump bool. Help?! 0 Answers
Mecanim RigidBody JUMP 0 Answers