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 Sunil021 · May 11, 2015 at 12:22 PM · screen resolution

Screen Resolution

Hi Guys, I want to start my 2d android game but don't know where to start there are so many screen resolutions. I want 2d game fits to all android devices.Don't want to stretch my game. Want it to be responsive. Which automatically fits on all android devices like mobile and tablets. Waiting for solution. Thank you

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 digzou · May 11, 2015 at 01:12 PM 0
Share

You can check my answer here.

http://answers.unity3d.com/questions/862249/stretching-background-sprite.html

2 Replies

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

Answer by SirBoboHobo · May 19, 2015 at 05:40 PM

In your Canvas use the Canvas Scaler component. Change the UI scale mode to Scale with Screen Size. change the resolution to the resolution you're building the game in now, See Image, and after that change the match to 0.5 to match the height and the width of your UI.

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 Sunil021 · May 20, 2015 at 10:54 AM 0
Share

Hello thanks for you answer.

But I want to make my 2d android game works on all landscape resolution. 480*320 / 800*480 /

854*480 / 1280*800 / 3:2 landscape / 16:10 landscape.

don't want to stretch or cut my game UI. Works on all android devices.Don't want to loose

quality.

avatar image SirBoboHobo · May 20, 2015 at 05:33 PM 1
Share

$$anonymous$$y answer is exactly that... I have 2 games on the market which I'm using the scaler... it automatically takes the width and height and resizes it... what i usually do is make the UI for the highest resolution, because when it resize it will only reduce size and not make it stretch.

Also, have a look at this tutorial

avatar image Sunil021 · May 21, 2015 at 09:41 AM 0
Share

Thank you so much.

Really helpful tutorial.

avatar image
0

Answer by Johnz1234 · May 11, 2015 at 01:19 PM

You can make this bt puting your background as simple sprite and placing your camera to the right space , make the camera view ortographic and for the Ui buttons go to Canvas and set Scale with the screen now the button's will scale with the screen and your background will stay same on every device :D

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 Sunil021 · May 19, 2015 at 02:33 PM 0
Share

Hello Code not working. Can you suggest me any video?

avatar image digzou · May 20, 2015 at 07:07 AM 0
Share

@Sunil021 http://www.thegamecontriver.com/2014/12/dynamic-canvas-using-canvas-scaler.html

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

size of window 0 Answers

Sample code for automatic adjusting screen resolution? 0 Answers

How to disable object scaling when screen height is changing 0 Answers

Screen.currentResolution values don't change after SetResolution in Mac builds 1 Answer

I have problems with the Camera.ortographic to adapt the view to screens with different resolutions. 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