GetFromHandle() public method

public GetFromHandle ( ) : NodeHandle
return Assets.NodeEditor.Editor.NodeHandle
コード例 #1
0
        private void DrawConnectionCurve(NodeConnection c)
        {
            Rect r1;
            Rect r2;

            if (c.GetFromHandle() != null)
            {
                r1 = c.GetFromHandle().rect;
            }
            else
            {
                r1 = c.GetFromNode().rect;
            }

            if (c.GetToHandle() != null)
            {
                r2 = c.GetToHandle().rect;
            }
            else
            {
                r2 = c.GetToNode().rect;
            }

            NodeUtils.DrawNodeCurve(r1, r2);
        }
コード例 #2
0
ファイル: BaseNode.cs プロジェクト: Randehh/Unity-NodeEditor
        private void DrawConnectionCurve(NodeConnection c) {
            Rect r1;
            Rect r2;

            if(c.GetFromHandle() != null) {
                r1 = c.GetFromHandle().rect;
            } else {
                r1 = c.GetFromNode().rect;
            }

            if(c.GetToHandle() != null) {
                r2 = c.GetToHandle().rect;
            } else {
                r2 = c.GetToNode().rect;
            }

            NodeUtils.DrawNodeCurve(r1, r2);
        }