Esempio n. 1
0
        private void DrawConnection()
        {
            if (CurrentSendingDrag == null)
            {
                return;
            }
            Chutilities.DrawNodeCurve(CurrentSendingDrag.Rect,
                                      new Rect(Event.current.mousePosition, CurrentSendingDrag.Rect.size));
            var endRect = new Rect(Current.mousePosition, Vector2.one * 10);

            Handles.RectangleHandleCap(GUIUtility.GetControlID(FocusType.Passive, endRect), endRect.center,
                                       Quaternion.identity, 15, EventType.Repaint);
            GUI.changed = true;
        }
 public void Draw()
 {
     Chutilities.DrawNodeCurve(@in.Rect.center, @out.Rect.center);
 }