Debug.LogWarning(String.Format("DebugItemState for item {0} of type {1} is not provided.\nDid you implement CreateDebugItemState in your custom Handler?",item.name,item.type));
// We don't want runtime only items even in the "player" debug menu if we are in the editor.
if(item.runtimeOnly)
return;
#endif
if(item.editorOnly)
return;
DebugItemUIitemUI=item.handler.BuildGUI(parent);
if(itemUI==null)
{
Debug.LogWarning(String.Format("DebugItemUI not provided for item {0} of type {1}.\n Did you implement BuildGUI for your custom Handler?",item.name,item.type));
}
else
{
m_ItemsUI.Add(itemUI);
}
}
m_ItemsUI.Clear();
#if UNITY_EDITOR
// We don't want runtime only items even in the "player" debug menu if we are in the editor.
if(item.runtimeOnly)
continue;
#endif
if(!item.editorOnly)
{
DebugItemHandlerhandler=item.handler;// Should never be null, we have at least the default handler