Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2018.4.27f1
2021.1
Issue ID
1283688
Regression
No
[WebGL] Two button clicks are required switching to the Fullscreen mode when changing Screen.fullScreen value
How to reproduce:
1. Open the attached project's "case_1283688-Project.zip" Scene labeled "SampleScene"
2. Build the project for WebGL
3. Host the built WebGL Player
4. Open it in a browser
5. In the WebGL Player, press the "Toggle" button
Expected result: Browser goes to fullscreen
Actual result: Two button clicks are required switching to the fullscreen mode when changing Screen.fullScreen value
Reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.9f1, 2020.2.0b7, 2021.1.0a1
Note: Going back to Windowed mode requires only one click
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
Due to a technical limitation of the web API, Unity C# API cannot resolve this. Instead use JavaScript API "unityInstance.SetFullscreen(1);" to avoid the issue.