Steps to reproduce:
- Create a new Unity Project
- Create a UI Document (Assets > Create > UI Toolkit > UI Document)
- In the newly created PanelSettings, set Render Mode to World Space
- In the Project window, create a new UXML (Right-click > Create > UI Toolkit > UI Document)
- Double-click the UXML to open it in the UI Builder
- Add two buttons to the canvas
- In the Hierarchy, select the UI Document and in the Inspector, set Size Mode to Dynamic
- Observe the UI size in the Scene View
- In the Project window, select the PanelSettings asset
- Change the Render Mode from World Space to Screen Space - Overlay
- Observe the UI size again in the Scene View
Actual results: The UI size changes noticeably when switching the PanelSettings Render Mode
Expected results: The size of the UI should remain consistent regardless of the Render Mode
Reproducible with versions: 6000.2.0b1
Tested on (OS): macOS 15.5 (Silicon M4), Windows 11
Notes:
- The inconsistency might affect layout fidelity during UI transitions or when toggling modes dynamically at runtime.