Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closewidth | Change Window Width (Windows Only). |
height | Change Window Height (Windows Only). |
x | Change Window Position X (Windows Only). |
y | Change Window Position Y (Windows Only). |
This Windows only function can be used to set Size and Position of the Screen when Multi-Display is enabled.
To change the size and position of Primary Display you must also activate Primary display by calling : Display.displays[0].Activate(0, 0, 0);