Newbie question about resolutions

Hello!

Here’s a newbie question: when I build my test first test game (using many UI-elements on a canvas) for Windows, the built game turns full screen, without any option to quit the game other than closing down the game process through Windows process-manager (Ctrl+Alt+Del).

Now, I would ideally like the user to

  1. be able to toggle full screen on and off,
  2. choose between at least a few common resolutions (1920x1080, 1280x900 and maybe one or two more) from an in-game menu.

Is this very complicated to achieve? Like, something that only the big studios have the resources to accomplish? Or is all it takes “the press of a button” in Unity?

Best regards,
Nikolaj

You can implement this with ease. Look up resolution in the docs, its really rather easy.

So I found out! One interesting thing is Unity’s default behaviour of saving resolution changes (set during gaming sessions) somewhere. I would have thought that this would be left for the developer to implement, typically through PlayerPrefs.