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 /
avatar image
0
Question by anamana · Nov 12, 2018 at 12:31 AM · canvasresolutionscalinganchoraspect ratio

Setting up Canvas to scale correctly with different resolutions

HI All!

I am having trouble getting my Canvas and the assets contained in it to scale correctly based on different resolutions/screen sizes. Details

  • I am developing a 2D puzzle game. most of the assets live within the canvas, as they are interactive

  • Currently, my Canvas is set to "ScreenSpace - Camera" with the Reference Resolution 2560x1440 as my Samsung S7 Edge is what I am developing on.

  • Game will be an Android phone game, but I would still like it to scale depending on resolutions of different devices.

If i am developing the Game and looking at it in the Game tab under the same resolution, everything is great. However, If I switch to Free Aspect and start to shrink/open up the window, things start to move out of place. If I adjust them for Free Aspect then they are out of place when i switch back to the resolution I need.

So I have some questions to narrow down what my issue would be: A lot of the sprites / gameobjects I use are set as Children under empty game objects, Just to organize everything better.

  • Is that allowed in Unity? or is it a bad idea

  • If it is allowed, should they be anchored to the empty Game Object or to the Canvas?

I think part of my problem is that I am not anchoring things correctly. However, I have tried to anchor the gameobjects under the canvas to the closest edge of the Canvas or to the middle of the Canvas, and this has not been fully successful either time. I am not sure which one is the correct path.

So now, with these settings, if I were to build it as a Mac application (quicker for texting than building to Android) - With 2560 x 1440 resolution, it looks great alt text - With lower resolution, ex. 1600 x 1200, things are out of place. alt text

I am not sure what I am doing incorrectly. Any help in the right direction would be appreciated. I have read the unity literature and googled many tutorials and it seems like things should be working, but are not.

thanks for any help, MN

screen-shot-2018-11-11-at-72344-pm.png (517.5 kB)
screen-shot-2018-11-11-at-72349-pm.png (419.1 kB)
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 haruna9x · Nov 12, 2018 at 02:17 AM 0
Share

I see some things anchored to the center, while others anchor to the left or right edges of the parent canvas. You should learn about how the Anchors work for you.

The Canvas Sacler component is also indispensable if you want it to fit in a variety of resolutions.

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

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

Related Questions

What is the most efficient method of adding letterbox to a 2D game? 0 Answers

Is this the correct way to scale my GUI? 1 Answer

Fit application to any device resolution 1 Answer

Aspect Ratios aren't displaying properly on build 1 Answer

Builded game for android resolution scruwed 0 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