ShimManager.IsScreenShimActive becomes false when maximizing/minimizing Simulator Window
Unity: Device Simulator
Fixed
2021.3.X
Fixed a scaling issue in device simulator when the view is unmaximized
How to reproduce:
1. Open the attached Project "Device Sim Test" and load Scene "SampleScene"
2. In the top left of the Game View switch from "Game" to "Simulator"
3. Enter Play Mode
4. Double-click on the Simulator tab to maximize it and then again to minimize it
5. Observe the Console
Expected Behaviour: ShimManager.IsScreenShimActive is True
Actual Behaviour: ShimManager.IsScreenShimActive is False (null)
Reproducible on: 2021.3.30f1, 2022.2.0a4
Fixed in: 2022.2.0a5
Notes:
The issue is also reproducible when performing the Zoom gesture on the Trackpad
Sometimes the issue also reproduces when maximizing the Window, such as with "Play Maximized"
Prioritise and Follow this issue
Have a workaround or additional info about this issue?