Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. In Hierarchy create Button object (Right-click > UI Toolkit > Standard Elements > Button)
3. In “Open UI stage” pop-up press “Continue” and save UXML file
4. Once element is created, make sure it is selected (blue and green highlight visible in UI Viewport on Button element)
5. Delete Button element from Hierarchy using keyboard shortcut (command+delete)
6. Observe UI Viewport
Actual results: After deleting the selected Button element from the Hierarchy, the orange, green, and blue selection highlight remains rendered in the UI Viewport window and is not cleared
Expected results: When a selected UI element is deleted from the Hierarchy, its selection highlight is removed from the UI Viewport window immediately
Reproducible with versions: 6000.6.0a7
Can’t test with versions: 6000.6.0a6 and lower (No such feature to create UI Elements in Hierarchy window)
Tested on (OS): macOS Tahoe 26.4.1 (M1)
Notes:
- Not reproducing in UI Builder window