Author Topic: Latest update broke panels  (Read 3781 times)

Jeff

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Latest update broke panels
« on: December 04, 2016, 01:49:22 PM »
Or root, not sure which. Just opened my project after updating and I'm getting strange behavior. Everything is fine before hitting the play button, but at runtime the panel stretches out and takes my anchored elements with it. Please help!

Attaching screenshots.

Thanks,

Jeff

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Latest update broke panels
« Reply #1 on: December 04, 2016, 10:18:44 PM »
Check NGUITools.screenSize. There is a section there that's only for the OSX editor attempting to work around a Unity 5.4+ bug (retina issues). Try playing around with things there. Also try adding [System.NonSerialized] in front of static Vector2 mGameSize = Vector2.one; on line 1907 of the same file (NGUITools.cs).

Jeff

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Latest update broke panels
« Reply #2 on: December 05, 2016, 11:37:39 AM »
try adding [System.NonSerialized] in front of static Vector2 mGameSize = Vector2.one; on line 1907 of the same file (NGUITools.cs).

That fixed it. Thank you!