1

How to make my Unity3d standalone game run on full screen mode be default?

I tried to change the player settings but without any luck. I don't wanna see any toolbar above my game, or any close or resize buttons.

Tal Angel
  • 1,301
  • 3
  • 29
  • 63

2 Answers2

4

The following Player Settings will open the game with fullscreen exclusive mode, without any prompts:

Fullscreen Player Settings

Tested with Unity 5.6.0f3

  • 1
    Unfortunately this is something you can set or change only if your game is not distributed. Once the game is launched these settings are written to registry and the only way to override them is via script. After the first launch this window is useless if resolution dialog is disabled. This can make you pull hairs if you modify these during development as well. So script way is safer and saner. – Guney Ozsan Apr 12 '18 at 11:12
2

You can do this in code, e.g.

public class FullscreenByDefault : MonoBehaviour
{
    void Start()
    {
        Screen.fullScreen = true;
    }
}

or in any existing MonoBehaviour

Andriy Tylychko
  • 15,967
  • 6
  • 64
  • 112