Hidden renderers error

I’m getting this error on scene start/end:

“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.”

error is coming from:
“Error in file: C:/BuildAgent/work/300357e52574df36/Runtime/Camera/UnityScene.cpp at line: 66”

This started happening when using Pool Manager to spawn an object which contains NGUI sprites, as a child of an NGUI panel.

Any idea where/how to fix this error?

Did you recently upgrade NGUI? I had this error after an upgrade and it went away by following the steps in the ngui readme. It’s also talked about at the below links. Basically, create a new scene, delete the NGUI folder and reimport NGUI. Then close the unity editor. Open unity again and if it is the same problem I faced the error should go away. I had a problem with my tabs too. I had multiple tabs created for ngui tools that failed to load. I “fixed” it by switching my view to a unity built in view and then back to my saved custom view. Silly, but it worked. Hopefully that helps.

Cheers

http://www.tasharen.com/forum/index.php?topic=547.0

EDIT:

If you are using the standard NGUI and have another package that bundles the free version, delete the free ngui assets before you reimport the paid ngui assets.

I know this is an old post, but …
I think this error has something to do with using DraggablePanel/ClippedPanel/Grid in a scrolling list configuration and allowing your code to operate on those while they are disabled. I have a scrolling list which I used in a custom combo box and to “close” the control I disable the scrolling drop down part which (in my implementation) disables all the MonoBehaviour components involved but not the game objects. While closed it was still receiving move and resize events and it was causing a problem. I changed the implementation to store down the size parameters and only allow resize when activated. This solved it for me.