Exemple #1
0
 public override void Draw()
 {
     guiElement.Foldout(xOffset, content, currentlyDrawing.gui);
     testAltClick(DrawingData.lastGuiObjectRect, this);
     if (guiElement.getState())
     {
         EditorGUILayout.Space();
         foreach (ShaderPart part in parts)
         {
             part.Draw();
         }
         EditorGUILayout.Space();
     }
 }
Exemple #2
0
        public override void DrawInternal()
        {
            currentlyDrawing.currentProperty = this;
            guiElement.Foldout(xOffset, content, currentlyDrawing.gui);
            Rect headerRect = DrawingData.lastGuiObjectHeaderRect;

            if (guiElement.getState())
            {
                EditorGUILayout.Space();
                foreach (ShaderPart part in parts)
                {
                    part.Draw();
                }
                EditorGUILayout.Space();
            }
            DrawingData.lastGuiObjectHeaderRect = headerRect;
        }