Unity Issue Tracker - Rigidbody Animation keeps playing when the Animation State has changed
Closed
UUM-9664
Rigidbody Animation keeps playing when the Animation State has changed
Unity: Mecanim Animation
Won't Fix
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2019.4.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
Reproduction steps:
1. Open the attached project (AnimationBugTest.zip)
2. Open the TestBug.unity Scene, located in the /Assets/Scenes folder of the Project window
3. Select the "Cube" GameObject in the Hierarchy window
4. Open the Animator window (Window > Animation > Animator)
5. Select the Parameters tab in the Animation window
6. Enter Play Mode
7. Enable the MoveX parameter in the Parameters tab of the Animation window
8. Enable the MoveY parameter in the Parameters tab of the Animation window
9. Disable the MoveY parameter in the Parameters tab of the Animation window
10. Observe "Cube" GameObject's movement
Expected result: The GameObject should move along the Y-axis
Actual result: The GameObject moves along the X-axis and Y-axis (diagonally)