Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2018.4.X, 2019.2.X
Votes
4
Found in
2017.4
2018.4
2019.2
2019.3
2020.1
Issue ID
1080571
Regression
No
[OSX] Switching to windowed via scripting API fails when "Allow Fullscreen Switch" is NOT checked.
When "Allow Fullscreen Switch" is NOT checked, if script API is used to change the Player from fullscreen to windowed mode, the Player remains fullscreen mode and switches to native resolution automatically.
Repro:
1. Download attached project and make sure the "Allow Fullscreen Switch" is unchecked in Player Settings
2. Build and launch standalone Player
3. If the Player does not launch into fullscreen mode, switch it to through the UI provided in the project
4. Try to switch it back to windowed mode via the UI in the project
Expected: The script API can dictate what mode the Player is in, despite the Player Settings in the Editor.
Actual: The Player does not switch from fullscreen to windowed mode with script API.
Reproducible with: 2017.4.32f1, 2018.4.7f1, 2019.2.3f1, 2019.3.0b1, 2020.1.0a1
Note: This bug does NOT happen when "Allow Fullscreen Switch" is checked.
The script API used for project is "Screen.SetResolution" https://docs.unity3d.com/ScriptReference/Screen.SetResolution.html
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
HdG_S
Aug 22, 2019 15:08
Also reproducible with 2018.4.7