Exemplo n.º 1
0
 // Draw an error image next to the mesh button
 private void DrawErrorMeshSetting(int index)
 {
     if (settings.tabStatus[index] != WarningStatus.None)
     {
         style.DrawSmallError(Rect.zero, settings.tabStatus[index]);
     }
 }
Exemplo n.º 2
0
 // Draw errors images for each tab in the toolbar
 private void DrawErrors()
 {
     for (int iRect = 0; iRect < tabErrors.Length; iRect++)
     {
         if (settings.tabStatus[iRect] != WarningStatus.None)
         {
             style.DrawSmallError(tabErrors[iRect], settings.tabStatus[iRect]);
         }
     }
 }