- Home /
Going to windowed mode after reaching fullscreen
I just want to go windowed mode when I'm in fullscreen, I'm not getting error messages, if i started a game in windowed mode I can switch to fullscreen by making Screen.Fullscreen = true, but once i'm in full screen , Screen.Fullscreen = false not getting back a windowed mode.
void OnGUI () {
if (GUI.Button (new Rect (10, 180, 100, 30), "FullScreen")) {
Screen.fullScreen = true;
}
if (GUI.Button (new Rect (10, 220, 100, 30), "Windowed")) {
Screen.fullScreen = false;
} }
I can go to fullscreen but not the opposite, thought it is problem in my current project , so I did new empty project , but still the same, also upgraded to the last unity version and still the same .
Regards Ramez
Answer by Ramezov · May 30, 2018 at 06:01 PM
I've placed debug code to check what is going on , screen.fullScreen is always giving True value even if I set it to false :/ very strange
Your answer
Follow this Question
Related Questions
Canvas not resizing when app is changed to fullscreen 1 Answer
Fast app switching from fullscreen mode in OS X 3 Answers
[Help] FullScreenMode - what is it? 0 Answers
Changing the default window mode (fullscreen/windowed) of a compiled Unity game? 2 Answers
OSX standalone app goes black when switching to window 0 Answers