Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Teldrius · Jun 11, 2016 at 12:44 PM · 2d gamescreenscaling

2D Game Scaling to Screen

I need to scale and position all the sprites in my game to maintain the same size and distance ratios across all resolutions / screens.

Or, you know, as close to the same ratios as possible.

My dream is to have the game look roughly the same on any size, with all objects visible

When I try to play the game I'm making on the tv, a lot of things aren't visible, but when I play on my pc, I can see it all

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 NoseKills · Jun 11, 2016 at 02:03 PM 0
Share

Orthographic camera?

The size and distance ratio will automatically be the same. The way the camera works, that gets handled automatically. The camera will not make some objects bigger and some smaller when the screen size changes. And it wont move them, they will stay stationary in world space.

Also the orthographic camera works so that height-wise the same amount of space is always shown regardless of screen size. So i take it your problem is that you want to show the same amount width-wise to prevent objects going out of the sides of the screen? This can be done by increasing the orthographic size of the camera, but will naturally mean that more stuff will become visible at the top and bottom of screen.

It's simply impossible to make the game look 'the same' if the aspect ratios are different on 2 devices. Basically you have to decide whether to scale based on width or height or by some ratio between those two.

Can't give you an exact answer before you know which or what exactly is the problem you are having (screenshots?)

0 Replies

· Add your reply
  • Sort: 

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

Scaling Sprites based on 800x1280 resolution 0 Answers

SImple but IMPOSSIBLE Enemies keep dying way ahead of time ! 0 Answers

Mobile 2d resolution scale 0 Answers

Screen scaling isn't scaling properly. 0 Answers

Scale a sprite horizontally as well. 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