protected internal override void DrawConnection() { if (connection != null && connection.Body != null) { EffectUtility.DrawLine(connection.rect.center, this.rect.center, Color.blue); } }
protected internal override void DrawConnection() { if (connection != null) { EffectUtility.DrawLine(this.rect.center, connection.rect.center); } }
public static void DrawLinkSelecting() { if (curNodeEditorState.IsLinkSetting) { Vector3 startPos = new Vector3(curNodeEditorState.SelectedKnob.rect.center.x, curNodeEditorState.SelectedKnob.rect.center.y, 0); Vector3 endPos = new Vector3(CurNodeInputInfo.InputPos.x, CurNodeInputInfo.InputPos.y, 0); EffectUtility.DrawLine(startPos, endPos); } }