Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: N3uRo on April 15, 2012, 04:57:29 AM

Title: NGUI editor script error
Post by: N3uRo 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"
Title: Re: NGUI editor script error
Post by: ArenMook 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...
Title: Re: NGUI editor script error
Post by: N3uRo on April 15, 2012, 06:46:38 AM
I have only one scene so I don't mark any object with DontDestroyOnLoad.
Title: Re: NGUI editor script error
Post by: getluky 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.
Title: Re: NGUI editor script error
Post by: xylax11 on April 24, 2012, 12:48:43 AM
I am also getting this after the update.
Title: Re: NGUI editor script error
Post by: ArenMook 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.
Title: Re: NGUI editor script error
Post by: Nicki 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.
Title: Re: NGUI editor script error
Post by: xylax11 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.
Title: Re: NGUI editor script error
Post by: mishaps on April 26, 2012, 08:15:22 PM
got this error too after importing the latest update. Restarting unity fixed it for me.