예제 #1
0
 public override void OnInspectorGUI()
 {
     if (isVisible)
     {
         XBaseEditor.DrawLogo();
         base.OnInspectorGUI();
         material.renderQueue = XBaseWindow.CreateIntField("renderQueue", material.renderQueue);
         toggleKeywords       = XBaseWindow.CreateCheckBox("shaderKeywords : " + material.shaderKeywords.Length, toggleKeywords);
         if (toggleKeywords)
         {
             for (int i = 0; i < material.shaderKeywords.Length; i++)
             {
                 material.shaderKeywords [i] = XBaseWindow.CreateStringField(material.shaderKeywords [i]);
             }
         }
         if (material.HasProperty("_Color"))
         {
             material.color = XBaseWindow.CreateColorField("_Color", material.color);
         }
     }
 }