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 Neurus_Ex · Jun 10, 2013 at 08:35 AM · cameraresolutiontransformationmulti-display

"Resolution agnosticism" - Create a project without thinking on the resolution.

I'm currently making a small project. Due it's focus, I'm using both a Win7 machine with a 17" screen and a Mac Book Pro (One of those with a retina display). The final application should be deployed in an iPad aaand I'm testing it in a iPad mini.

So, as you can see, I'm using 4-5 different displays to develop this project, and in each screen is all different. As an example, a transformation that I apply to an asset: The asset turns and moves from position a to position b, being always inside the screen. In iPad half of the asset ends up outside the screen for its screen size is too small.

What I want, in sort, is being able to "tell" the camera the size of the screen, so it adapts itself to it, showing always the same content. I know I can ask for the current system's width and height, but I do not really know what to do with them.

Comment
Add comment · Show 1
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 Fattie · Jun 10, 2013 at 08:41 AM 1
Share

unity is completely resolution agnostic, and all projects work like this. so you're done.

(in contrast IF YOU WANT TO WOR$$anonymous$$ with pixels on a specific device, it's a huge hassle and you need 2DToolkit form the asset store, in practice.)

NOTE THAT: when you make films, television shows, or computer games: different screens have different ratios. in other words some screens are wider than others.

{Indeed, there's even the case of people having multiple monitors, if you're talking desktop games.}

You must understand there is utterly no way to "automate" this. It would be like saying "oh I want something to automate what colors the designer chooses in the game"

it is utterly up to you, how you handle different screen widths. For example, you may choose to include a funny border on the screen if there is more available. You may choose to include a special feature like an overhead map on the extra space, for people who have it.

You may choose to "SPREAD OUT" the playing field, OR, you may choose to "stretch" the playing pieces -- if it's a board-type game.

(Carefully review the way Fieldrunners handle different shape screens -- astoundingly, EVEN THEY do not handle every shape perfectly, I've noticed.)

Again it is extremely confusing when people want to automate different screen ratios because you cannot automate that.

But as for resolution, Unity doesn't even know about it. You're all set.

please note: these sort of questions are hugely confusing unless you mention basically what type of game you are making. everything's utterly different with a shooter versus Scrabble, etc etc.

So, enjoy !

1 Reply

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

Answer by Owen-Reynolds · Jun 10, 2013 at 02:10 PM

You're really asking about AspectRatio.

The iPad "outside" bounds problem you're seeing is because the PC screen is more rectangular than an iPad screen, so things near the edge get cut off. Unity has tools to let you look up the AspectRatio, and some example code on how to use that value to help fix things.

But, as Fattie says, the answer is very much no. Look around the web for sizing games to various phones and you'll see it's aways a problem moving to different ratios of screens. Unity is slightly better at it, since you're encouraged not to count pixels.

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

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

Related Questions

Orthographic Static 2D Background - IOS/Iphone 3,4 & 5 1 Answer

Camera Resolution Independence 0 Answers

2D Game. Screen, Camera and coordinates. 0 Answers

Multi display Issue 0 Answers

How to deal with multiple resolutions in android? 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