Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How do I get my game to start in a window instead of full screen?

Discussion in 'Windows' started by AcademyOfFetishes, Dec 1, 2018.

  1. AcademyOfFetishes

    AcademyOfFetishes

    Joined:
    Nov 16, 2018
    Posts:
    219
    I'm new to Unity, but I've done some research on this question before I asked. When I click "build and run" in the Unity editor, it doesn't seem to respect my Full Screen Mode settings. I'm on windows, and every time my game starts, it's full screen, even though I picked "Windowed." Am I doing something wrong here?

    Here are my player settings:

     
  2. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    If you ever started it fullscreen you might have remnant settings. Hold down alt when it starts and change the settings in the resolution dialog there.
     
  3. AcademyOfFetishes

    AcademyOfFetishes

    Joined:
    Nov 16, 2018
    Posts:
    219
    Thank you, that was it. Where are these settings stored? I'd like to wipe them out to verify it works the way I want it to for my users.
     
  4. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    It uses the registry on Windows:
    https://docs.unity3d.com/ScriptReference/PlayerPrefs.html

    I recommend making your own preferences system which uses a file you have some control over though. The registry is hard to back up for the average user, while a file in a common location is stored even by built-in backup tools.