Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2019.4
2020.2
2020.2.6f1
2021.1
2021.2
Issue ID
1317468
Regression
No
[Animation] GameObject stops rotating when Animator component is disabled and then re-enabled
Steps to reproduce:
1. Download and open the project “AnimatorBug.zip”
2. Open SampleScene
3. Enter Play mode
4. Select “Drop_Ship_Bur_Mesh” GameObject from the Hierarchy window
5. Disable the Animator component in the Inspector window
6. Notice that the GameObject "joint_Turret_Rotation" continues to rotate
7. Re-enable the Animator component
Expected Result: The turret GameObject "joint_Turret_Rotation" rotates and plays the animation as before
Actual Result: The turret GameObject "joint_Turret_Rotation" plays the animation but does not rotate
Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.6f1, 2021.1.0b10, 2021.2.0a7
Notes:
- Although disabling and re-enabling the Animator stops the GameObject from rotating it doesn’t disable the Rotator script, on disabling the Animator again, you can see that the GameObject has continued to rotate
- Added a video of the issue
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
Resolution Note:
This is not a bug, if you want to drive joint_Turret_Rotation by script simply remove all curve from your animation clip for this transform. If you want to have an animation and override the result you must do it in a MonoBehaviour.LateUpdate()