Possible Animator Bug? Adding New Animation Stops Current Movement

Hello,

I have a character who is controlled quite lovingly by my inputs and has been working admirably for a long time. I am at a point where i am finally adding in more death (muahahha) animations. The problem is, I tried adding just one new animation to the animator and the character can no longer move. He doesnt fall due to physics, he won’t move left, right, jump, etc. He basically just is idle, floating helplessly in a space like vacuum.

I have identified this as something with the animator/animation. I tried fervently debugging things one at a time to discover what was going wrong and the solution was always just removing the animation entirely from the animator. Even leaving the animation but removing the transition didnt work, I HAD TO remove the animation from animator window. It did not appear to be any code.

I did try to have a transition from Any State but like i said, even without the transition the player does not function anymore. I am fairly well versed with the Animator and making Animations through Unity and have not encountered this before.

Looking for answers or a workaround. I am working on version 2018.2.16f1.
-Sincerely, a slightly insane turtle hermit.

Sorry, I don’t have a solution or workaround but maybe someone over here might? (since it could be more of an animation issue than 2D)

I think i figured out the problem. If the animation is created on the same object as the character controller, it overwrites the rigidbody (from what I read) so if i make the animation on the child gameobject where i have my spriterenderer, it should work. I forgot that i made my animations on the child gameobject a long time ago so this makes sense.

1 Like

How did you do it, please help

Please don’t necro post. Start your own post… it’s FREE!

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
  • links to documentation you used to cross-check your work (CRITICAL!!!)

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379