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 The1nk · Jun 08, 2012 at 05:06 AM · androidresolutionaspect-ratio

Android Resolution Solution ?

Hey all,
I'm getting started with Unity and Android, and wanted to get the resolution/aspect ratio issue sorted out before I sit down and try to make a very simple game from start to finish. I've been doing a lot of reading on the topic, but unfortunately I really don't know what to do to try to remedy it.

What I'm having trouble with is figuring the dimensions of the playable area based on how big the screen is. With this information in hand I would then be able to restrict enemy and player movement, as well as alter other game logic.

I'm currently developing with my Samsung Galaxy Nexus (ICS, Android 4.0.2), but would of course like the game to function both on my wife's Droid 2 and my spare HTC Incredible. How can I do this? D:

Comment
Add comment · Show 6
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 The1nk · Jun 11, 2012 at 02:26 AM 0
Share

No thoughts? Hrm.

Will purchasing a 3rd-party package like NGUI help? :|

avatar image yusufulutas · Jun 11, 2012 at 07:39 AM 0
Share

first You look ezgui plug-in

avatar image hijinxbassist · Jun 11, 2012 at 08:13 AM 0
Share

@the1nk it really shouldnt matter in coding, other than the actual rendering of the GUI. The cam picks up what it does based on the view spectrum. If you know the specific res you are going for, you can create the gui items for that spec (or you can go the more dynamic route and code in 'spacers' for the "fill" sections of your gui). You may have x amount of space, with n amount of spacer value and fill in the space value with a standard element that align with the corresponding gui. Not very east to write, but it is pretty advanced in itself..

avatar image The1nk · Jun 11, 2012 at 08:42 PM 0
Share

@yusufulutas - Why? Does it offer advantages over NGUI for my concern -- creating the GUI on multiple android devices which sport many different resolutions and aspect ratios?

@hijinxbassist - Yeah, I'm typically concerned with the GUI itself. As far as I can tell, the Camera will just need to keep important elements centered on the screen so that as the aspect-ratio/resolution changes, nothing too big will be missed. The GUI is the nightmarish part, though, as ins$$anonymous$$d of having it just work I'd prefer it to look good :P

avatar image yusufulutas · Jun 12, 2012 at 06:59 AM 0
Share

@The1nk yeah it's supports for multiple android devices and it has very good documentation. http://www.anbsoft.com/middleware/ezgui/

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by dylan92 · Jul 11, 2013 at 06:52 PM

The best solution would be for you to write something that allows you to design your GUI for a common aspect ratio and then just scale the resolution based on the device. Alternatively, you could just buy one of the many GUI solutions on the Asset Store.

I recommend GUI Essentials. It's very easy to use and has a low cost compared to other GUI solutions.

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

7 People are following this question.

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

Related Questions

How can I support FHD+ Resolution in Android game? 0 Answers

How to build android game with 18.5:9 ratio? 1 Answer

Inconsistent Sprite location on screen 1 Answer

Is there way to apply scale on guitext? 0 Answers

Reading Screen Dimension in Android Immersive Mode 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