• 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 AnnaB417 · Mar 18, 2016 at 12:27 PM · guiresolutionscalingbug report

Unity 5.xx GUI Resolution resetting on build

I am creating a GUI interface that will be loaded onto a Surface Pro 4, which has Windows 10 installed. I've updated to 5.3.4 hoping that might fix the issue with the support for the Surface Pro 4, but didn't help. Also tried numerous scripting work-arounds as suggested in other GUI resolution questions, but none of those have worked either.

The Sfc 4 resolution is 2736 x 1824, and my scene format is to be run in portrait mode (1824 x 2736). Working strictly in the Unity3D built in GUI environment, my Canvas is set to x = 1824 and y =2736, canvas scaler is "scale with screen size" at 0.5 so it scales with height and width evenly. I also have panel set up to 1824 x 2736, and in my build settings>>Player settings, I define default screen width = 1824 default screen height = 2736. When I run the program in the editor, it shows up at proper resolution. However, as a stand-alone build, the resolution never shows up right. See second screen shot.

I don't know where else I could possibly change the resolution, but even having everything set to the res I want, I am seeing what is shown in first screen shot.

Has anyone else experienced this issue in the GUI? I've been struggling and searching for a day or so now on this one.

UPDATE 03.17.16: The stand-alone resolution glitch I'm experiencing was a known issue in 5.1.1, 5.2, and also reported after 5.3.1. Unity3D is aware of the bug, which is in the Unity canvas code. Reference here: http://forum.unity3d.com/threads/fullscreen-gui-bug.338181/

unity-resolution-bug.jpg (20.9 kB)
unitty-resolution-bug-run.jpg (137.3 kB)
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
0

Answer by AnnaB417 · Mar 18, 2016 at 03:21 PM

With the help of a developer at Unity3D (Thank you Karl Jones!!) I was able to work through this. It's not a bug. The Anchor function in the GUI/2D environment is powerful. This ended up being user error, in that I did not have my panel and buttons anchored to the canvas in the right way, which resulted in some sort of change in the resolution during BUILD runs, that I couldn't figure out. I watched the tutorial again, it's worth going through twice just to be sure you have a good handle on the anchoring system. Resolution is now where it is expected to be in my stand-alone build. https://unity3d.com/learn/tutorials/modules/beginner/ui/rect-transform

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Editor and Device resolution mixed-up problem 0 Answers

UGUI Scaling across multiple monitors 0 Answers

How to make GUI Adjust to different resolutions, making the GUI not move off the screen on lower resolutions 4 Answers

IOS Resolution Scaling 0 Answers

Huge Texture Not Keeping Resolution 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