Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.44f1
2021.3.18f1
2022.2.5f1
2023.1.0b2
Issue ID
UUM-26870
Regression
No
SkinnedMeshRenderer not rendering after animator is removed and "optimize game objects" is enabled
How to reproduce:
1. Open the project “IN_29178”
2. Drag and drop the “avatar” prefab from the Project window to the Scene view
3. Select the “avatar” prefab in the Hierarchy window
4. In the Inspector window remove the “Animator” component
5. In the Hierarchy right-click “avatar” → Prefab → Unpack Completely
6. Drag and drop unpacked “avatar” GameObject to the Project window
7. Observe the Scene view
Expected result: “avatar” prefab is rendered
Actual result: “avatar” prefab is not rendering
Reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.5f1, 2023.1.0b2
Reproducible on: Windows 10 Pro
Note:
- Not reproducible with other prefabs (newly created cube prefab or similar)
- Not reproducible if the “Animator” component is not removed
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
The model is imported using the optimize GameObject setting. When this setting is used the animation data is directly passed on to the SkinnedMeshRenderer. Removing the animator in this case leaves the SkinnedMeshRenderer with no data to execute skinning. As a result nothing renders after a refresh - (save scene, create prefab)