public void DrawWindowLayout(FD.FlowWindow window) { var flowWindowWithLayout = FlowSystem.GetData().HasView(FlowView.Layout); if (flowWindowWithLayout == true) { GUILayout.Box(string.Empty, FlowSystemEditorWindow.styles.layoutBoxStyle, GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true)); var rect = GUILayoutUtility.GetLastRect(); if (window.OnPreviewGUI(rect, FlowSystemEditorWindow.defaultSkin.button, FlowSystemEditorWindow.styles.layoutBoxStyle, drawInfo: true, selectable: true, onCreateScreen: () => { this.SelectWindow(window); FlowChooserFilter.CreateScreen(Selection.activeObject, window.compiledNamespace, "/Screens", () => { this.SelectWindow(window); }); }, onCreateLayout: () => { this.SelectWindow(window); Selection.activeObject = window.GetScreen(); FlowChooserFilter.CreateLayout(Selection.activeObject, Selection.activeGameObject, () => { this.SelectWindow(window); }); }) == true) { // Set for waiting connection var element = WindowLayoutElement.waitForComponentConnectionElementTemp; this.WaitForAttach(window.id, element); WindowLayoutElement.waitForComponentConnectionTemp = false; } UnityEditor.UI.Windows.Plugins.Flow.Flow.OnDrawWindowLayoutGUI(rect, window); } }