mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!TX
This commit is contained in:
parent
4ab79fe0bb
commit
e49753c585
@ -134,8 +134,6 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
public Vector2 GetCurrentMousePosition(float yOffset = 10)
|
public Vector2 GetCurrentMousePosition(float yOffset = 10)
|
||||||
{
|
{
|
||||||
Debug.LogError(Event.current.mousePosition + ":" + target.position);
|
|
||||||
|
|
||||||
var mouseGridPos = Event.current.mousePosition;//* window.zoom;
|
var mouseGridPos = Event.current.mousePosition;//* window.zoom;
|
||||||
|
|
||||||
var nodeWindowPos = window.GridToWindowPosition(target.position + mouseGridPos);
|
var nodeWindowPos = window.GridToWindowPosition(target.position + mouseGridPos);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user