Пример #1
0
 public void Draw(
     EditorWindow editor, Rect viewRect,
     ConnectionStyle style = ConnectionStyle.BezierVertical
     )
 {
     EditorAreaUtils.BeginZoomArea(ZoomLevel, viewRect);
     {
         DrawWindows(editor);
         DrawConnections(style);
     }
     EditorAreaUtils.EndZoomArea();
 }
Пример #2
0
        public void Draw(
            EditorWindow editor, Rect viewRect,
            ConnectionStyle style = ConnectionStyle.Smooth
            )
        {
            DrawRect            = viewRect;
            ConnectionLineStyle = style;

            EditorAreaUtils.BeginZoomArea(ZoomLevel, viewRect);
            {
                DrawWindows(editor);
                DrawConnections(style);
            }
            EditorAreaUtils.EndZoomArea();
        }
Пример #3
0
        public void Draw(
            EditorWindow editor, Rect viewRect,
            ConnectionStyle style = ConnectionStyle.Smooth
            )
        {
            DrawRect            = viewRect;
            ConnectionLineStyle = style;

            EditorAreaUtils.BeginZoomArea(ZoomLevel, viewRect);
            {
                try
                {
                    DrawWindows(editor);
                    DrawConnections(style);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }
            }
            EditorAreaUtils.EndZoomArea();
        }