- Home /
Set Resolution game like Desktop Resolution not possible?
Hi,
I have try to insert in the Awake of my script that start in the first GameObject into the first scene this instruction:
Screen.SetResolution (Screen.currentResolution.width, Screen.currentResolution.height, true);
for to play with current desktop resolution my game (because i not want to load display resolution dialog).
BUT NOTHING !!!
It start to resolution 1024x768 that is to default from :
File/BuildSetting/PlayerSetting/"Resolution"
WHY it think that my desktop resolution is 1024x768? There is a way for to start before this script and next the setting of Unity? Or there are other solution?
Ps. I have disable DISPLAY RESOLUTION DIALOG.
Answer by Eric5h5 · Mar 12, 2011 at 10:38 PM
Screen.currentResolution only tells you the desktop resolution if you're running in windowed mode, so you should start in windowed mode instead of fullscreen mode.
Your answer
![](https://koobas.hobune.stream/wayback/20220613112540im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Actual Desktop Resolution 1 Answer
Reading Screen Dimension in Android Immersive Mode 1 Answer
Show a second screen 0 Answers
2D Game. Screen, Camera and coordinates. 0 Answers