Issue switching between full screen and windowed
Hi, I want to have an option to switch between full screen mode and windowed mode on runtime. But when I make de build and I change the mode from full screen to windowed the new window is all black. If I switch from windowed to full screen it doesn't fit with the screen, looks like if the resolution changed to another higher.
I'm trying different solutions like:
Screen.fullScreen = !Screen.fullScreen;
or
Screen.SetResolution(Constants.SCREEN_WIDTH,Constants.SCREEN_HEIGHT,Screen.fullScreen);
Any solution is working.
Help please :(
I'm working with Windows 10 and Unity 5.2.1
Your answer
Follow this Question
Related Questions
Switch to maximized window at runtime 0 Answers
Equivalent of "Mac Fullscreen Mode: Fullscreen Window" for Windows users? 2 Answers
Make game start fullscreen without launcher? 0 Answers
Resolution messed up after switching between fullscreen modes. 1 Answer
Fullscreen checkbox always starts checked even when the game starts in windowed mode. 0 Answers