Game just runs in full screen once, then it turns to windowed

Hi guys, I know there are lots of people having trouble with the Player preferences, when they set the game to run windowed but it keeps running in full screen because of previous registers.

In my case I can remove all registers, build my game, run it in Full screen but if I close the game, it never runs in full screen again, for some reason its turning to windowed after I close it and open again.

Also, I think this may be caused by some register since if I change the company name and game name it runs in fullscreen again, but just once. This is the only way I can run it in fullscreen again since cleaning the registers in Unity editor makes no changes to the game.

Also, to close the game I need to press Alt+tab and close it manually since it has no quit command.

Please tell how to run always in full screen.

Can you share the code where you are setting and getting the PlayerPrefs?

I am just setting the PlayerPrefs on the building settings, I didn’t create a code to set values to it.

Ahhh sorry, ive been so used to using PlayerPrefs in my code that i was looking into it too much.

Here is something that may help: Unity Issue Tracker - Game is runs in Fullscreen instead of Windowed mode when changing the build settings from Exclusive Fullscreen to Windowed mode

Or try something from this:

1 Like

Thank you and yeag I’ve read some of this topics, so I think the only solution is to press Alt+Enter to run the game in fullscreen, since I still need to close the game by ending tasks. It seems like the exe “remembers” how you closed it, so it will re open in windowed mode.