Author Topic: NGUI editor script error  (Read 12021 times)

N3uRo

  • Guest
NGUI editor script error
« on: April 15, 2012, 04:57:29 AM »
Hi Aren,

When I hit play and then stop, I get this error:

"Scene is being destroyed while there are hidden renderers that are using it. This is likely an editor script creating objects with hideFlags and leaving them enabled."

I'm pretty sure that it's a NGUI editor script because in my project I haven't any other plugin and I haven't coded any editor script on my own.

I can't give you more information because Unity doesn't give where it originates the error only this:

"Filename: C:/BuildAgent/work/b0bcff80449a48aa/Runtime/Camera/UnityScene.cpp Line: 66"

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI editor script error
« Reply #1 on: April 15, 2012, 05:06:03 AM »
I've heard of this one before, though I've never seen it personally. It's something to do with how NGUI is used. Have a look at what objects you mark as DontDestroyOnLoad, or change hide flags on. Is the UI hierarchy a child of such object? Is there such object *in* the UI hierarchy? etc...

N3uRo

  • Guest
Re: NGUI editor script error
« Reply #2 on: April 15, 2012, 06:46:38 AM »
I have only one scene so I don't mark any object with DontDestroyOnLoad.

getluky

  • Guest
Re: NGUI editor script error
« Reply #3 on: April 23, 2012, 11:23:04 PM »
I just had this happen to me as well, whenever scenes would change. It disappeared when I restarted the editor, however. Don't know what was causing it.

xylax11

  • Guest
Re: NGUI editor script error
« Reply #4 on: April 24, 2012, 12:48:43 AM »
I am also getting this after the update.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI editor script error
« Reply #5 on: April 24, 2012, 02:28:25 AM »
I think it's caused by not doing File -> New Scene prior to deleting NGUI and importing it from the updated package.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI editor script error
« Reply #6 on: April 24, 2012, 02:46:52 AM »
I do that all the time, and I haven't seen this error. Actually, when i think about it, I just import on top of the old one and restart unity, no problems yet. :)
I think it's caused by not doing File -> New Scene prior to deleting NGUI and importing it from the updated package.

xylax11

  • Guest
Re: NGUI editor script error
« Reply #7 on: April 24, 2012, 11:04:22 AM »
I also imported it how you advised in the other thread, however after switching between two projects the error has ceased.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: NGUI editor script error
« Reply #8 on: April 26, 2012, 08:15:22 PM »
got this error too after importing the latest update. Restarting unity fixed it for me.