private void OnGUI() { CaptureGroup.Begin(GetSavePath("FullWindow")); { CaptureGroup.Begin(GetSavePath("Toolbar")); { DrawToolbar(); } CaptureGroup.End(); CaptureGroup.Begin(GetSavePath("Grid")); { Rect gridRect = GUILayoutUtility.GetRect(EditorGUIUtility.currentViewWidth, 50f, GUILayout.ExpandHeight(true)); _styleGrid.DoLayout(gridRect); } CaptureGroup.End(); } CaptureGroup.End(); }
public static void Begin(string savePath) { #if CAPTURE_GROUPS CaptureGroup.Begin(savePath); #endif }