Search Issue Tracker
Fixed in 2022.1.X
Votes
19
Found in
2020.3
2021.1
2021.1.13f1
2021.2
2022.1
Issue ID
1351090
Regression
No
Animator.GetBoneTransform does not return null when Animator is disabled
Reproduction steps:
1. Open the attached project "GetBoneTransform.zip"
2. Open the "Scenes/SampleScene" Scene
3. Enter Play Mode
4. Select the "Robot Kyle" GameObject in the Hierarchy
5. Disable its "Animator" component in the Inspector
6. Press R and observe the Console
Expected result: function returns null
Actual result: function does not return null
Reproducible with: 2020.3.14f1, 2021.1.15f1, 2021.2.0b5, 2022.1.0a3
Could not test with: 2018.4.36f1, 2019.4.29f1 (functionality to return null is not implemented)
Note: the function returns null only if the GameObject holding the Animator is disabled
Comments (4)
-
Limit1997
Apr 06, 2023 12:09
Please fix this in Unity 2021
-
friuns2
Jun 04, 2022 01:00
I mean seriously, they plan to keep this bug in LTS?
-
torisoup_unity
Dec 07, 2021 05:23
please fix in Unity 2020 LTS
-
Pnpako
Nov 16, 2021 02:16
please fix this.
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
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
- Switching between UI Documents with different Canvas sizes marks the UXML file as dirty
Resolution Note (fix version 2022.1):
Reverted to original behaviour: GetBoneTransform() should works even if animator or gameobject is disabled