Author Topic: UI breaks after script compile  (Read 1650 times)

wolodo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UI breaks after script compile
« on: November 01, 2016, 10:58:32 AM »
Hello,
I am using NGUI in unity 5.3.6 and I have a problem, while compiling scripts: the whole UI gets messy (see the screenshots). It goes back to normal, after I hit the play button. Is this a known issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI breaks after script compile
« Reply #1 on: November 03, 2016, 08:11:16 AM »
Check your cameras. I can see something questionable happening if you have multiple cameras drawing the same UI layer, so when NGUI tries to find an appropriate camera, you end up with different results.

wolodo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UI breaks after script compile
« Reply #2 on: November 03, 2016, 08:13:49 AM »
Thank you for the answer. It stopped doing it itself after restart. Weird...