Author Topic: gui disappear  (Read 1680 times)

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
gui disappear
« on: June 27, 2017, 08:47:43 AM »
After unity editor restart,many times my gui disappear, sometimes disappear only the buttons sometimes all my interface.
often i discover that uiroot is disabled (but not disabled by me) sometimes find uicamera and depth totaly different form when was created.
Please explain if there is something that i don't understood.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: gui disappear
« Reply #1 on: June 27, 2017, 11:55:28 AM »
NGUI doesn't change depths of cameras, and the only place where UIRoot can get disabled is in its Start() function -- if you're also using a UIOrthoCamera component. When that happens, a warning is printed. You can always try adding a Debug.Log to the UIRoot's OnDisable function to see where it's getting called form.

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
Re: gui disappear
« Reply #2 on: June 30, 2017, 09:19:03 AM »
simply i have not start funcition in any of my class that disable uiroot.
i not sure 100% it's clear because you say right if it is your case. thanks for help.