Animation changes when marked as legacy
I had an animator component on my game object but the animations were very buggy so I decided to use the animation component instead. However, when I mark my animations as legacy, they become different. For example, in the old animation, the player swings his arms when the jump animation is played but when I mark it as legacy, the arms don't swing and I can't edit the animation. Also, if you can help me, This is my code for the animator. when I jump (press space), sometimes the animation does not play until the player has landed on the ground again.
if (controller.isGrounded) { verticalVelocity = -gravity * Time.deltaTime; if (Input.GetKeyDown(KeyCode.Space)) { verticalVelocity = jumpForce; JumpSound.Play(); gameObject.GetComponent<Animation>().Play("Jump"); animator.SetTrigger("Jump"); } } else { verticalVelocity -= gravity * Time.deltaTime; animator.SetTrigger("StopJump"); }
I hope you can help me and thank you in advance!
Your answer
Follow this Question
Related Questions
Can't play an animation from the Animator 1 Answer
Animation looks super janky while the game is running 0 Answers
How do I rotate specific joints/bones using a script? 0 Answers
Animations Not Working 0 Answers
how to Restore corrupted Animator 0 Answers