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 phaninder15 · Aug 08, 2013 at 12:59 AM · androidmobileaspect ratioscreen size

Hi, Do we need to code 3d game for every aspect ratio

Hi all, am currently making a 3D Mobile game(in landscape) for android using unity3d. I want to know whether i need to code the camera viewport to scale to all aspect ratio or will Unity take care about that.

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 cdrandin · Aug 08, 2013 at 01:52 AM 0
Share

Unity will take care of all viewport handles

avatar image cdrandin · Aug 08, 2013 at 01:53 AM 0
Share

Simply drop a 3D model in the scene. Build for Android and bam. You have a 3D object on your phone if you put it on your phone.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BrinkHouseGames · Aug 08, 2013 at 02:28 AM

Because you are working in a 3D environment, the game world will be presented regardless of aspect ratio or resolution, however things like UI, titles, etc. not be repositioned automatically. These types of elements need to be dynamic and aware of the players aspect ratio and resolution, if you plan to support multiple sizes. Look into using anchors for text and labels as it's a good place to begin learning about the screen bounds and how to position elements at runtime depending on the users configuration. :)

http://docs.unity3d.com/Documentation/ScriptReference/30_search.html?q=anchor

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 BrinkHouseGames · Aug 08, 2013 at 01:49 AM 0
Share

And to specifically answer your question, no, you don't need to write code for the camera in order for Unity to adjust to the end device, you just may not see everything or have your GUI positioned as intended. For example if you are viewing a 16:9 viewport inside Unity, and then publish to a 4:3 device, you will still see the environment fill your screen, but the left and right sides will be lost, including any buttons or GUI you may have had. Same goes for all other ratios as well.

avatar image phaninder15 · Aug 11, 2013 at 08:56 AM 0
Share

Thanks for helping sir

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

15 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 avatar image avatar image avatar image avatar image

Related Questions

Mobile aspect ratio and scaling - Use 16:10 or 16:9 base for full screen background ? 0 Answers

Mobile device screen sizes 4 Answers

Developing on multiple resolutions 1 Answer

How to change Unity2D aspect ratio with scenes? 1 Answer

Mobile Game Different Screen Size Issue 2 Answers


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