I would really like to know how you are getting to the state where you have orphaned draw calls hanging around. If you can let me know the steps, I would really appreciate it and would certainly fix it.
Also, if you want to be able to see the hidden draw call objects, navigate to the following section in UIPanel:Uncomment the line that's commented out, and comment out the line that follows, like so:
#if UNITY_EDITOR // If we're in the editor, create the game object with hide flags set right away GameObject go = UnityEditor.EditorUtility.CreateGameObjectWithHideFlags("_UIDrawCall [" + mat.name + "]", //HideFlags.DontSave | HideFlags.NotEditable); HideFlags.HideAndDontSave); #else DontDestroyOnLoad(go); #endif
#if UNITY_EDITOR // If we're in the editor, create the game object with hide flags set right away GameObject go = UnityEditor.EditorUtility.CreateGameObjectWithHideFlags("_UIDrawCall [" + mat.name + "]", HideFlags.DontSave | HideFlags.NotEditable); //HideFlags.HideAndDontSave); #else DontDestroyOnLoad(go); #endif