How to reproduce:
- Set up one monitor with a scale different than the other monitor (Display Settings > Scale)
- Open the “unity-canvas-scaler-bug.zip“ project
- Open the “SampleScene” (Assets > Scenes > SampleScene)
- Enter the Play Mode
- Open any Editor window (i.e. Preferences window) and drag it onto the other monitor
- Move the mouse pointer within that window
- Observe the Game view
Expected result: Canvas is not being scaled differently while the mouse pointer is being moved
Actual result: Canvas is being scaled differently while the mouse pointer is being moved
Reproducible in: 2021.3.33f1, 2022.3.15f1, 2023.2.3f1, 2023.3.0a17
Reproduced on: Windows 11 Pro
Not reproduced on: No other environment tested
Note:
- The reporter also notes that the issue does not reproduce if the window is moved to another screen with the same DPI scaling setting (not tested)
- The issue can be also reproduced with a keyboard if it is used on the window, on the other monitor, on the fields that require keyboard input