public static DrawBezier ( Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width ) : void | ||
start | Vector2 | |
startTangent | Vector2 | |
end | Vector2 | |
endTangent | Vector2 | |
color | Color | |
width | float | |
return | void |
/// <summary> /// 绘制连线 /// </summary> void DrawNodeConnectLine() { if (NodeParent.m_SelectNodeLineBegin != null) { //Debug.Log("rttttttttttttt"); GLDraw.DrawBezier(NodeParent.m_SelectNodeLineBegin.m_Pos, Event.current.mousePosition, 100, Color.red, 2); } // Debug.Log("DrawNodeConnectLine " + m_AllConnectedLinePoints.Count); foreach (var item in m_AllConnectedLinePoints) { GLDraw.DrawBezier(item.m_BeginNodeLintPoint.m_Pos, item.m_EndNodeLintPoint.m_Pos, 100, Color.green, 2); }//绘制所有的连线 }