Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kinger61 · Apr 09, 2015 at 07:18 PM · buildresolution

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..

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DoTA_KAMIKADzE · Apr 09, 2015 at 08:12 PM 0
Share

Could you show us screenshot from your device? And from editor would be good as well.

avatar image Kinger61 · Apr 20, 2015 at 06:43 PM 0
Share

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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:

  • Canvas

  • Transform and anchoring

  • Canvas scaler

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kinger61 · Apr 23, 2015 at 04:14 PM 0
Share

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 ?

avatar image DoTA_KAMIKADzE · Apr 23, 2015 at 04:34 PM 1
Share

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.

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges