Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
0
Found in
6000.0.74f1
6000.3.15f1
6000.4.6f1
6000.5.0b7
6000.6.0a4
Issue ID
UUM-141893
Regression
No
Scripts with null Components on GameObjects are not removed when calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript
How to reproduce:
1. Open the attached “IN-142438“ project
2. Open the “scene“ scene
3. In the Hierarchy, select the “background“ GameObject
4. In the Inspector, observe and note the Components of the “background“ GameObject
5. In the Editor menu bar, select “GameObjectUtility“ (RemoveNullComponents > GameObjectUtility)
6. Repeat steps 3 and 4
Actual result: The (Script) null Component has not been removed from the “background“ GameObject
Expected result: The (Script) null Component has been removed from the “background“ GameObject
Reproducible with: 2023.1.0a1, 6000.0.74f1, 6000.3.15f1, 6000.4.6f1, 6000.5.0b7, 6000.6.0a4
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Testing 6000.4 to 6000.6 streams required minor adjustments to the script calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript because of the changes made to EntityID
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sub-asset UI does not refresh when undoing Renderer Feature add or remove actions in a URP Renderer asset
- Scene flickers with a green tint when using Screen Space Ambient Occlusion and Contact Shadows with raytracing
- Scripts with null Components on GameObjects are not removed when calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript
- Color Curve Key values remain visible after changing Curve type
- Selection highlight is drawn in an Animation Window when clicking in another Animation Window after highlighting items in the first one
Add comment