Search Unity

[Windows] Forcing the game to run in 550x250

Discussion in '2D' started by Akuma-no-Tsubasa, Jul 15, 2017.

  1. Akuma-no-Tsubasa

    Akuma-no-Tsubasa

    Joined:
    Nov 13, 2015
    Posts:
    33
    Hello,

    I created a small App that doesn't need full aspect ratios. So I want to force the window to be 550x250 via editor in the player settings. As long as the game is in the editor the resolution is perfectly applied but as soon as I built the game and run its exe it's in a 1024x768 fixed resolution.

    How can I change this?

    thanks
     
  2. guillermoi

    guillermoi

    Joined:
    Sep 20, 2012
    Posts:
    27

    Hey.

    In the Player settings you can change the resolution , you may want to disable full screen too I guess.

    https://docs.unity3d.com/Manual/class-PlayerSettingsStandalone.html
     
  3. Akuma-no-Tsubasa

    Akuma-no-Tsubasa

    Joined:
    Nov 13, 2015
    Posts:
    33
    Hello,

    thanks for your answer. But as I already said, I set the resolution there.
    I also disabled the resolution manager, disabled screen resizable



    But that resolution is not applied.
     
  4. guillermoi

    guillermoi

    Joined:
    Sep 20, 2012
    Posts:
    27
    My bad.

    No info in the log ? Guess you should enable "use player log"

    Would enabling an aspect ratio change the resolution of the newly created window? Even if it's not the res that you want ?.

    You could also force the resolution by script : http://answers.unity3d.com/questions/616310/force-window-size-for-standalone-build.html
     
  5. Akuma-no-Tsubasa

    Akuma-no-Tsubasa

    Joined:
    Nov 13, 2015
    Posts:
    33
    Hello,

    that works, thanks.
    But it's quite an ugly solution, will stick to it for now.
    If anyone knows how to make it native, please tell me :)