I am exploring a research problem using Unity. I require a game resolution of at least 4096 x 786. There seems to be no option under build settings for setting a fixed screen size window. (The default screen width and height options are unhelpful here.)

How can I make a window even larger than the desktop?

  • 1
    \$\begingroup\$ Don't you mean you need a canvas of that size? It doesn't make a lot of sense to say that you're looking for a software solution to needing more pixels in your screen than you have. \$\endgroup\$ – Junuxx Feb 10 '15 at 18:40
  • \$\begingroup\$ Scrolling over a bigger-than-screen-res canvas can definitely be done, but it has little to to with the screen size in the build settings. \$\endgroup\$ – Junuxx Feb 10 '15 at 18:41

As we can see in the documentation here on Screen.SetResolution:

A width by height resolution will be used. If no matching resolution is supported, the closest one will be used.

So what it will do is downgrade that to a supported width/height. This applies even if it's in windowed mode as opposed to full screen (at least in the version I'm using: 4.5.2). It should, however, work just fine as long as the monitor you're using supports that resolution.

The code used to programmatically change resolution is:

Screen.SetResolution(4096, 786, false);

Note also that on the build settings you can disable the resolution dialog that pops up before your game runs and you can define the aspect ratios and such that your game supports AND that resolution functions like this will usually have limited/no effect if running within the editor.

|improve this answer|||||
  • \$\begingroup\$ It did let me set ridiculous resolution like 100x100 or alike. \$\endgroup\$ – JeromeJ Aug 10 '18 at 7:19

You can't make one bigger than your monitor.

|improve this answer|||||
  • 3
    \$\begingroup\$ Please provide supporting information to back this up and improve the answer. As it stands this is barely more than a comment. \$\endgroup\$ – user1430 Feb 10 '15 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.