Hi Everyone, I am a software developer for virtual reality applications, I use Unity to do it. I mainly make games for the PC, so I export the builds for systems with a Windows operating system. When I do this, in the “Project settings” section, I say that the game should not open in full screen, but in a window. However, it happened to me to open a build of a game and it opened in full screen and since then all the builds I have created open in full screen. What is the cause of this problem?
Do you have “Allow Fullscreen Switch” enabled as well?
Unity saves the last fullscreen state in PlayerPrefs
, so if you switched to fullscreen once, it will return to fullscreen the next time. With allow switch enabled, you can use alt-enter on Windows and maybe there are other ways as well.
You can just switch out of fullscreen using alt-enter or delete the “Screenmanager Fullscreen mode” key in the registry.
You might disable “Allow Fullscreen Switch” to prevent this from happening in the future. You could also clear the above mentioned key in PlayerPrefs
on shutdown to force the default behavior (it’s too late on startup because Unity will already have entered fullscreen but that might not work if the game crashes / is terminated).
1 Like