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 golivrob · Oct 11, 2017 at 09:08 PM · uiresolutionbackground

Background and UI scalings are wrong

Hello,

First, I know I can use "Scale with screen size" and "Screen match mode", I'm actually already doing it but I'm facing an issue. I never have the same images. I let you take a look.

Here is the "#Scene" overlay: alt text

Here is the "Game" overlay: alt text

Here is the same scene on the build of the game: alt text

Here are the setting of my scene:

  • Render mode: "Screen Space - Camera. I put my only camera inside below.

  • UI Scale Mode: "Scale With Screen Size"

  • Reference resolution: 1920*1080 (my screen size)

  • Screen Match Mode: "Expand"

  • Background image is a gameobject UI image inside the canvas such as the white button.

Should have any idea, please feel free to share, this starting to drive me crazy! Of course, if you need further information, feel free to ask! :)

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by jchester07 · Oct 12, 2017 at 02:48 AM

First, Go to your Game tab in unity. As you can see on the upper right beside the game tab, it is set to free aspect. Change it to 1920*1080. I believe that resolution is not there by default so you can add it yourself. Then you can see how the actual build would look like.

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 golivrob · Oct 12, 2017 at 05:29 AM 0
Share

Hi jchester07,

Thanks for your help, it works! At least the "Game" overlay and the game are the same. It doesn't match with "#Scene" but I can deal with that! :) I have another question if I may. With this configuration, what will happen if the player has a 720p resolution or a smartphone?

avatar image jchester07 golivrob · Oct 15, 2017 at 08:39 AM 0
Share

$$anonymous$$ake sure you set the anchors of your image right. In your case, it should be set to stretch on all corners. On your canvas scaler, set it to "match width or height" with match set to 0.5. If the device has higher or lower resolution, it would scale matching the aspect ratio of what you set in your reference solution. If the target device has a different ratio, there will be black portions either on top and bottom or on the sides of the screen.

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

122 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 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

Stretching Background sprite 4 Answers

Best way to move elements around screen [uGUI] 0 Answers

UI Texture Max Size (inspector) 1 Answer

Problem with fixed Resolution and UI anchoring 2 Answers

Unity Scene View has other Resolution then Game View. 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