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
publicreadonlyGUIContentvertexColorModeText=newGUIContent("Vertex Color Mode","Mode multiply: vertex color is multiply with the mask. Mode additive: vertex color values are remapped between -1 and 1 and added to the mask (neutral at 0.5 vertex color).");
publicreadonlyGUIContentlayerCountText=newGUIContent("Layer Count","Number of layers.");
publicreadonlyGUIContentlayerTilingBlendMaskText=newGUIContent("Tiling","Tiling for the blend mask.");
publicreadonlyGUIContentobjectScaleAffectTileText=newGUIContent("Lock layers 0123 tiling with object Scale","Tiling of each layers will be affected by the object scale.");
publicreadonlyGUIContentobjectScaleAffectTileText2=newGUIContent("Lock layers 123 tiling with object Scale","Tiling of each influenced layers (all except main layer) will be affected by the object scale.");
return heightResult + height0 * inheritBaseHeight * inputBlendMasks.a * influenceMask; // We multiply by the input mask for the first layer because if the mask here is black it means that the layer is not actually underneath any visible layer so we don't want to inherit its height.