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(); } }
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; }