Example #1
0
 /// <summary>
 /// Calculates where the new node position should be based on current mouse position
 /// </summary>
 /// <returns>The position to add the new node to</returns>
 public Vector2 GetNewNodePosition()
 {
     return(NodeEditor.ApplyZoomToVector(Event.current.mousePosition -
                                         NodeEditor.NodeEditorRect.position) - NodeEditor.GetPanOffset());
 }