Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Drexster on June 21, 2012, 04:41:22 PM

Title: Orphaned UIDrawCall Detected!
Post by: Drexster on June 21, 2012, 04:41:22 PM
Not sure what's causing this, but just noticed some orphaned NGUI objects in my scene when starting play.
Selecting them results in the following warning:

"Orphaned UIDrawCall detected!
Use [Selection -> Force Delete] to get rid of it.
UnityEngine.Debug:LogWarning(Object)
UIDrawCallInspector:OnInspectorGUI() (at Assets/NGUI/Scripts/Editor/UIDrawCallInspector.cs:37)
UnityEditor.DockArea:OnGUI()"

Any clue on how to prevent this from happening, or to clean it up?
Title: Re: Orphaned UIDrawCall Detected!
Post by: ArenMook on June 21, 2012, 05:24:33 PM
It may be possible for draw calls to become orphaned if you did something strange, such as editing code while the game is running. I suggest tracking down what you did in order to make them become orphaned, and not doing it in the future. :)
Title: Re: Orphaned UIDrawCall Detected!
Post by: alternativee30 on June 28, 2012, 03:43:20 AM
I also have recently started having this problem. The cause for me is updating to NGUI 2.09a. I havent messed around with singling out which script or component is causing the behavior yet.
On play i  get a cloned GUI version of itself that doesn't move with my character controller.

I will post later on when i update smaller chunks of NGUI at a time to figure out what is causing the conflict.
Title: Re: Orphaned UIDrawCall Detected!
Post by: PhilipC on June 28, 2012, 10:27:36 AM
Did you upgrade NGUI while a scene that had NGUI objects in it was open? If so that would cause this issue.