Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Problem with Rigidbody2D and Collider2D when animation from spritesheets attached.

Discussion in 'Animation' started by Mandar, Mar 17, 2014.

  1. Mandar


    Feb 12, 2014
    Hi, I was trying out different ways to animate characters for my 2D game in Unity 4.3.4 and tried out spritesheet animation (by slicing the sprite using grid option in sprite editor. Followed instructions on -

    However, When I create animations using this method, the animations play well on the gameobject (using animator component attached to that gameobject) but Rigidbody2D and BoxCollider2D doesn't seem to work after Animator is attached. The character is neither affected by gravity nor does it collide with other gameobjects. Please help.
  2. SpiriTx


    Graphics QA Unity Technologies

    Apr 12, 2012
    Your animation probably is changing position of the object.

    Try disabling "Apply root motion" checkbox in the animator.