Search Unity

Maximized Windows by default

Discussion in 'Windows' started by Gamrek, Jul 23, 2018.

  1. Gamrek

    Gamrek

    Joined:
    Sep 28, 2010
    Posts:
    116
    Hi,

    I am making an application for Standalone Windows. Is there anyway to have a maximised windows screen by default? If I do full screen, the Application Title bar just disappear. I want to keep that bar, but maximised windows when start.

    Here is my settings:
    Fullscreen Mode : Maximized Window
    Default is Native Resolution: True
    Resizable Window: True

    I also tried in script:

    Screen.SetResolution(Screen.width, Screen.height, FullScreenMode.Windowed, 30);

    but this doesn't maximised my window by default. Is there any way to work around it?
     

    Attached Files:

  2. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    482
    You probably want to use
    FullscreenMode.MaximizedWindow
    in your script. However, I tried that and it still didn't work. This seems like a bug to me. You should report it to Unity.

    Sam
     
  3. EthanFischerICS

    EthanFischerICS

    Joined:
    Jan 24, 2018
    Posts:
    1
    Have you figured out a workaround. I'm also facing this issue. Standalone player launches with a gap above the top of the screen and a little between the left of the screen. Clicking the maximize button fills in these gaps, but then it launches this way again next time

    upload_2020-2-10_12-0-1.png
     
unityunity