Is there a way to tell Unity to start a game Windowed by default ?

As the topic say, is there a way to tell Unity to start a game Windowed by default ? I disabled the config window and i tried unsetting the option “Is default fullscreen” and i also set the dimension width of 1280 and height of 720 so i expected to have a windows of this size opened at start but it still open it full screen (i am talking about the Windows build not inside the editor).

Any ideas ?

1 Like

This should work. But unity automatically saves the settings from the first launch, and then re-uses it for all subsequent launches. So it saved your game being fullscreen - and after changing the default to windowed, it uses the fullscreen save. See http://docs.unity3d.com/ScriptReference/PlayerPrefs.html

Deleting the PlayerPrefs should reset it, and it’ll use default settings on next launch.

2 Likes

Interesting facts! Thanks for this, really appreciated. I didn’t know about first launch settings being saved in the registery. But that make sense cause for controls it was behaving the same way.