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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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').