How to reproduce:
- Create an empty project and open it
- In the Hierarchy tab, create an empty GameObject (right-click > “Create Empty”)
- In the Inspector tab of newly added GameObject, click “Add Component” > select “New script” > name it “NewMonoBehaviourScript” > “Create and Add”
- In the Project tab, delete “NewMonoBehaviourScript.cs” (right-click > “Delete”)
- In the Hierarchy tab, select GameObject
- Observe the result in the Inspector tab
Actual result: The missing script component draws no header, so it's impossible to remove the component from the three-dots menu
Expected result: The missing script component shows its header with an accessible menu, so it can be removed
Reproducible with: 6000.3.19f1, 6000.3.21f1, 6000.5.6f1, 6000.6.0b6, 6000.7.0a3
Not Reproducible with: 6000.0.80f1, 6000.3.18f1
Reproducible on: Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Workaround: The missing component could be removed by right-click > “Remove Component”