- Home /
Can't build a PC standalone with custom window...
Hi all,
I'm just beginning to learn Unity and just finished the Space Shooter tutorial. In the tutorial, the build is a web player (dimensions 600 * 900). The problem is that when I make a PC standalone version, Unity doesn't build the correct window width and height, even if I choose the same dimensions as the web app :
Is it possible to have a custom windows size for standalone app with Unity ? Any help would be appreciated :-)
Answer by DaDonik · Feb 21, 2015 at 03:27 PM
Try to use the following in the Awake() or Start() method of one of your scripts.
Screen.SetResolution(900, 600, false);
Should be a script thats actually exectuted on startup of your game of course =)
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Unity4 standalone build problem....Help! 0 Answers
Extra files after building? 0 Answers
How to open a separate window from the stand alone player 0 Answers
Works in player but NullReferenceException in build. 2 Answers