Can i set window size and window position via script?

So actually how can i run unity standalone application and set window position of this application and it size (lets say half screen width and half screen height)?

1 Answer

1

To set resolution:

Edit → project settings → player → Resolution

To run:

To run standalone file → build settings → select settings and click build and run

You didnt understand me. I want to run 4 game simultaneously. So one be in left up corner, second in right up corner and so on.

You can do that by building an external .exe that will call your main one four times, google how to do that with c#. I can propose another solution for you. You can create four cameras and edit their Viewport Rect like this : ![In-Game][1] ![Camera 1][2] ![Camera 2][3] [1]: http://i.imgur.com/tusbWrd.png [2]: http://img43.imageshack.us/img43/472/bwcy.png [3]: http://img5.imageshack.us/img5/8325/vv9i.png

Actually i start with 4 cameras and set camera rect. But there is many problems. So i decide to run 4 exe. I know how to run exe, but i didn't know how to place window in one of the corner and hide window zones