Steps to reproduce:
- In any Project create a "Panel Settings Asset" (Create > UI Toolkit > Panel Settings Asset) and select it
- Set the Render Mode to "World Space"
- Create or just open any Prefab and add a "UI Document" Component to any GameObject
- Assign the World Space configured Panel Settings Asset to that UI Document Component
- Enter Play Mode and remove the UI Document Component and exit Play Mode
- Exit out of Prefab View and open up the Prefab again
- Observe the Inspector of the GameObject inside a Prefab
Actual results: A "UI Renderer" Component is leftover from deleting the World Space configured UI Document Component
Expected results: No leftover Component is present
Reproducible with versions: 6000.2.0b4
Not reproducible with versions: 2022.3.63f1, 6000.0.50f1, 6000.1.6f1 (No World Space UI)
Tested on (OS): Windows 11