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 Alverik · Dec 30, 2016 at 05:10 AM · uipositionscalescene-switchingworldspace

Worldspace UI in wrong position/scale after scene change

Hi, just had an strange issue happening to my UI, but only happens in builds. Basically I have this group of worldspace canvases in a small square area, set to be my title screen(VR). the canvases are suspended in the air as if they were billboards. One is an actual Menu with options, but the rest are only some labels and images with credits information or logos. Now I've set them up so they reach the player around the chest height (not dynamically, just manually set their height). And it works perfectly in the editor, but in the build all of the canvases start much, much lower than in the editor's playmode, so the player has to bend down to reach the menu. The canvases are stored on an empty object with a zeroed transform. I tried checking the default resolution, tried moving the whole empty way, way higher, but same thing happens, they end up near the floor, I even disabled the canvas scaler in the canvases to check if it was a resolution issue, but it keeps happening, and only in the builds. I don't know if VR has anything to do with it (Using SteamVR/VRTK).

There are other scenes where I'm dynamically controlling the UI's position, for like an inventory menu and or hotspot titles or other text, and the position works pretty much like it should with those.

I do have noticed one more issue, though, and it's that one of the canvases, which is there only to display text, gets huge every odd play session (basically one session is the right size, but if you close and reopen then it goes huge, and so on). I'm not too sure about this issue cause I do have some code which allows resizing the UI for some objects but I'm pretty sure I'm scaling it back to it's original size afterwards (OnDisable), also the place where I use the rescaling is in the scene prior, and as I said, at times it works just right for the whole session, and I'm not saving the scale of the UI in player prefs or modifying the original prefab at all, so the scale shouldn't be remembered at all. But worst of all is that both issues only happen in the build, in the editor's play mode it works like a charm...

Has anyone ever had an issue like this? anyway, any advice would be highly appreciated.

PS: Ah, I also have absolutely no script error warnings in the development builds, but the UI issue is ever present, it just doesn't get registered as an error at all...

Edit: I managed to reproduce the error in the editor. It seems to happen whenever I scene change and the UI is placed manually in the scene. I keep the rest of my UI in prefabs which are instantiated per scene so I had never noticed it before.

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

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

108 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

Related Questions

World Space UI Scale To Fit Screen At DIfferent Aspect Ratios 1 Answer

Coincide Input.mousePosition with UI element position to be on same coordinate system 0 Answers

Image with material is not render 0 Answers

PlayerPrefs issue 2 Answers

Strange UI Button hover offset when using Worldspace Canvas in VR 4 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