Author Topic: Layout/Anchor of UI Elements Messed Up in Editor Mode  (Read 3625 times)

iron59

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 16
    • View Profile
Layout/Anchor of UI Elements Messed Up in Editor Mode
« on: November 09, 2014, 09:35:40 PM »
I noticed this when I upgraded my package from 3.0.9 f3 to 3.7.5. When I tried to adjust the positions of my UI Elements (with the UIRoot set as a prefab), the layout is messed up when I drag it to the scene while it's not played. Upon closer look, it seems the anchor is not getting the UI Root's bounds and extend farther away. Take a look at the screenshots below.
The UI behaves as expected when I run the game getting the correct bounds for the anchor. Can I have some suggestions on how to resolve the proper layout when in editor mode? Thank you very much

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Layout/Anchor of UI Elements Messed Up in Editor Mode
« Reply #1 on: November 09, 2014, 09:50:09 PM »
There are 3 other posts on this topic on the front page.

Upgrading to 3.7.6 adds a work-around for the bug Unity introduced in the last 2 patch versions. This only affects the absolute latest 2 versions of Unity (4.5.5p3 and p4).

iron59

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: Layout/Anchor of UI Elements Messed Up in Editor Mode
« Reply #2 on: November 10, 2014, 01:04:17 AM »
Sorry I didn't know it was a an issue with the Unity's new version. Found the solution here http://www.tasharen.com/forum/index.php?topic=11671.msg54269#msg54269
Thank you for your response.