Search Issue Tracker
By Design
Votes
0
Found in
2022.3.57f1
6000.0.37f1
6000.1.0b5
6000.2.0a2
Issue ID
UUM-96946
Regression
No
GameObject cannot be disabled when an Animator references an Animation Clip containing the GameObject's "IsActive" property
How to reproduce:
1. Open the “AnimatorSetActive.zip“ project
2. Open the “UnityBug-AnimatorSetActive“ Scene
3. Enter Play Mode
4. Uncheck the “Child Active State“ Checkbox in the Game view
5. Observe the children GameObjects of the “Animator“ GameObject in the Hierarchy
Expected results: Both children GameObjects are disabled
Actual results: Only the “Child Not Referenced In Animation - Can Be Disabled“ child GameObject is disabled
Reproducible in: 2022.3.57f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a2
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Workaround: Disable the Animator Component first
Notes:
- If the Animator is disabled (by unchecking the “Animator State“ checkbox in the Game view) then both children GameObjects can be disabled
- The relevance of the issue is that a user has no control over setting the GameObject activity in the Editor if its “IsActive“ property is referenced in an Animation Clip (which is not necessarily playing)
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
- Addressables Report window UI is broken when opening via Build > New Build > Default Build Script
- Addressables Profiles window UI break when creating a new Variable with a long name
- No character limit when renaming Profile in Addressables Profile window, allowing excessively long names
- Blurry, low quality Active Profile icon used in Addressables Profiles window
- Tree Asset Preview window is not updated after assigning a new Material
Resolution Note:
This is by design. The animator gathers all animated properties in the animation clips to build the bindings that are animated and writes back to them whenever it is evaluated. If the value is not animated directly, the Animator writes back the default value of the property when it was initially bound to the Animator (in this case 'true').