Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by yusolaifdfer · Mar 11, 2013 at 02:45 PM · resolutionscreensizeforceaspect ratio

Forcing an resolution for all android and iphone screens

Its really annoying, almost impossible to work with especially with android as there are wide, like WIDE, variety of phones with different screen ratio/resolution/size. I searched for this and I saw mixed answers, I am sorry but I would really like a help on this.

Is there a way to force a screen ratio for all the phones including android and iphone screen so the same the apk look same on all devices, as the guitext and guitextures I am using really mess up with with phone different to I am testing the game on and I have a big phone (note 2) which obviously not everyone have/ like to have.

Comment
Add comment
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

1 Reply

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

Answer by Statement · Mar 11, 2013 at 02:51 PM

Is there a way to force a screen ratio for all the phones including android and iphone screen so the same

Sure, but do you really want to? You can settle for an aspect ratio and stretch to fit your content using the cameras view rect, but that would waste a lot of screen estate and I think your users would wonder why they get a game that doesn't use the entirety of the screen.

Yes, it's a real problem rooted in a real world with real devices and they all differ in many ways. You could make a few supported aspect ratios and adjust to fit accordingly. Another way of tackling the problem is to try to make your game resolution/aspect independent. When it comes to GUI, you could either scale the GUI.matrix or position GUI objects according to screen dimensions.

When making the design of your GUI/game it is very important to keep this in mind, so it doesn't come back slapping you later down the production.

Comment
Add comment · Show 3 · 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 yusolaifdfer · Mar 11, 2013 at 03:56 PM 0
Share

For example the joystick, it messes up how to cope with that ?

avatar image Statement · Mar 11, 2013 at 04:27 PM 1
Share

The joystick messes up? Can you be more specific? You mean that the pads are floating mid screen or that they get hidden? Position the pads to the correct location on screen. Use Screen.width and Screen.height to adjust to screen corners accordingly.

avatar image yusolaifdfer · Mar 11, 2013 at 04:49 PM 0
Share

I used the the pixel inset from the inspector to set their positions is that the reason ? If I set their position using code will they like stay ? I am sorry I am really weak at explaining

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

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Which Is The Actual Game?(Max or no Max Screen) 1 Answer

iPhone Screen Size 2 Answers

Object resolution 0 Answers

How to make game recognise Screen resolution on startup 1 Answer

Aspect Ratios aren't displaying properly on 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