- Home /
Different resolution on .exe file when build and run
Hello Friend.
I am new on developing using Unity. My first project is a game such as a flappy bird. You can see the picture below.
Look at the picture. That's my project and resolution setting. I set to 500 x 800 and it works very nice on play.
But if i click File -> Build & Run, the game is not showing the same resolution as look at the project file. Look at the picture below
That's look so different.
So, how to make the same resolution, on project and the .exe file? (Without resize the screen on .exe manually while run it)
Answer by rodude123 · May 23, 2015 at 11:57 PM
There are 2 possible ways.
You could set the default screen in the player settings and disable the resolution dialog.
You could make a script which would comunicate with the sprites so that it automatically resize depending on the screen resolution
I'd done with your first suggestion but nothing is change. For your 2nd suggestion, please give me the script
Sorry I can't as I you will need to figure this out yourself sorry. That way you will actually learn it
Answer by Naphier · Jun 06, 2015 at 05:14 AM
If you ran in a different resolution Unity will store the last resolution setting in the registry key too. So clear that out. I have a custom editor script that just resets player prefs for things like this.
Your answer
Follow this Question
Related Questions
which one of the panels in unity has effect on the size of the project? 0 Answers
Particle size changes when I build on a device 1 Answer
how to change the size of a box collider in c# 2 Answers
Unity Folder way too big - bigger than inside Files 1 Answer
Does having more assets in the project decrease performance or increase the build size? 1 Answer