From 27d75202b1d06d14e599b898caeb06cfce645a09 Mon Sep 17 00:00:00 2001 From: tabuto74 <32508985+tabuto74@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:28:28 +0200 Subject: [PATCH] Update NodeEditorAction.cs --- Scripts/Editor/NodeEditorAction.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index b3e2f26..37f52c6 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -18,6 +18,11 @@ namespace XNodeEditor { public bool IsHoveringPort { get { return hoveredPort != null; } } public bool IsHoveringNode { get { return hoveredNode != null; } } public bool IsHoveringReroute { get { return hoveredReroute.port != null; } } + public XNode.NodePort GetDraggingPort { get { return draggedOutput; } } + public XNode.NodePort GetHoveringPort { get { return hoveredPort; } } + public XNode.Node GetHoveringNode { get { return hoveredNode; } } + public XNode.NodePort GetHoveringReroute { get { return hoveredReroute.port; } } + private XNode.Node hoveredNode = null; [NonSerialized] public XNode.NodePort hoveredPort = null; [NonSerialized] private XNode.NodePort draggedOutput = null;