Steps to reproduce:
- Create and open a new project
- In Hierarchy, 'right-click -> UI Toolkit -> Standard Elements -> Button'
- Open the UXML in UI Viewport and dock the UI Viewport next to Game view
- Pan in the UI Viewport canvas so that the Button lies along the top edge of the window
- Focus Game view
- Open 'Window -> UI Toolkit -> Debugger'
- Click on 'Pick Element'
- Hover the cursor over the Button in Game view in different places
- Observe the behavior
Actual results: At certain locations (usually where the Button would be in UI Viewport) 'unity-panel-container-x' (x = some random number) is received, and the Button layout is not shown
Expected results: At all locations button in the Game view ("PanelSettings") is received, and the element layout is shown
Reproducible with versions: 6000.6.0b1, 6000.6.2f1, 6000.7.0b1, 7000.0.0a1
Can’t test with versions: 6000.0.84f1, 6000.3.24f1, 6000.6.0a7 (No UI Viewport)
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- Apparently, UI Toolkit Debugger prefers UI Viewport over Game view even when the window is behind Game view (both docked on the same panel)