- Home /
Game Window Resolution Problems
Ok i have a nexus 7 tablet which is 800x1280 res in portrait mode. I am developing a game in unity and need the game window to accurately show the same screen size, i have tried using the android ones available and even adding my own one in but the 'using resolution 607x971' is coming up... problem is when i use that and put all my objects into position i then build out an APK and run it on my nexus 7, there is big spaces down the side of my screen and at the top and bottom as the devices screen is bigger than i am developing on in the game window within unity, there must b a way to solve this without just making things slightly bigger or moving them about inch by inch and constantly building out to compare? Any help would be appreciated because i am currently losing the will to live with this ! thanks..
Could you show us screenshot from your device? And from editor would be good as well.
Hey sorry for late response to this, been really busy! yea Cal2 its the UI elements I have the issue with, the rest of the gameobjects all work fine in the scene and tend to be in the right place.
DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE i have attached link to the images to show you...
http://i59.tinypic.com/apel2o.png - This is the game window pic http://i62.tinypic.com/2wrf95f.png - This is the game on Device pic
Answer by DoTA_KAMIKADzE · Apr 20, 2015 at 07:13 PM
Well first of all your screenshot from your device is 1000x1600, not 800x1280. Anyway what you see in Unity editor (607x971) is the maximum pixels it can get with the same aspect ratio (5:8), e.g. if you can stretch your game window in unity to give it more height it will be higher.
Now to get you into UI watch and read this:
Now after you have gone trough all of the above^ you either can make everything for different resolutions or use ScaleWithScreenSize with ScreenMatchMode of your choice and reference resolution of 800x1280, then position your elements using anchoring system and that's it.
If you will not understand something then ask me in the comment section below.
Quick question, it relates to the UI..I'm using Unity 4.5.5 and i know the UI in unity 5 is easier to use because of the canvas u mentioned in those tutorials there..but will my project or the UI within my project mess up if i update unity to Unity 5 and open project in it ?
Well probably migrating to 4.6 might require less of headache than to 5, but as for your question - yes you might need to change some settings and code in order for it to work properly again, while migrating to 5 Unity will try to "migrate itself" if you'll allow it, but that won't be a panacea if your project is complicated enough or use some features that were removed/changed. But in anyway I'd advise you to save a copy of your project before trying to do so. Unfortunately there is no way to guess how complicated migration will be without actually seeing whole project.
Answer by Cal2 · Apr 10, 2015 at 12:02 PM
ya, I never found a solution to this. But I think I know whats wrong, if its the same problem I had.
The game window is being shrunk down because it is not taking up 800x1280 on your monitor. if you have more then one monitor I would suggest popping the game window out and using it as big as you can get it without it shrinking down.
also are you talking about UI elements or game objects like polygons? because I've only had issues with the UI acting up on different resolutions.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Build Resolution differs to editor resolution 0 Answers
Build camera problems... 0 Answers
Is there an alternate way to Build? 2 Answers
UI and resolution problems (fine in editor, problem in Android build) 1 Answer