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 andrew_2992 · Jul 01, 2016 at 07:37 PM · uierrorcanvasscalelayout

Layout error after crash has effected canvas scaling

Hello, I recently had a crash after saving a script in mono develop. When I returned to the Unity window the program immediately closed and later a bug report window opened but I chose not to report it had happened before many times throughout the last year, maybe once every week or two, when using unity 7 - 10 hours a day the entire time.

When I opened my project I had an error message from Unity trying to load the layout i was using which consisted of the profiler on the bottom tab section and lighting on the right etc. I chose to load the default layout because it wasn't really a big deal for me at the time. I then learned it was because i made a small type error in my code so i went back to my editor and saved the script (no saves in the unity editor). Now my ui has been tampered with on a global scale. I'm not getting any errors but it appears that the canvas scaler is not working anymore. When I change the size of the editor window, every child of the canvas is moving all over the place and not scaling correctly. Before dragging the screen would result in a slight lag, and then the ui elements would recalculate their position.

I don't want to save anything in Unity before I get some advice on what to do or what might have happened. Whether it is the canvas scaler or not, the problem is the elements are not at all scaling to screen size. They do attempt to change size but are going in opposite directions, etc. No harmony what so ever anymore, yet it was perfect for almost 8 months. Current Unity version is 5.3.5f1.

Any ideas and suggestions are GREATLY appreciated.

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 andrew_2992 · Jul 04, 2016 at 07:07 PM

Just in case anybody has an error with their UI objects resizing unusually after the layout gets reset, I'll post my solution. The problem was actually caused by the resolution my game was using after the reset. It seems resetting the layout does not just reset the tabs and windows you've arranged but the resolution you're using in the editor and while playing in editor. I fixed that and everything worked fine.

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.

Follow this Question

Answers Answers and Comments

89 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

Related Questions

Get layoutgroup and contentSizeFitter to update immediately 4 Answers

Unity UI - layout fixed number of buttons 1 Answer

UI Only Updates As Intended When Editing Through Scene 0 Answers

When does canvas layout complete? 1 Answer

Why does my dynamically instantiated UI element have a different scale than the prefab it was instantiated from? 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