mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!B 坐标计算错误
This commit is contained in:
parent
7c3c106eeb
commit
9be869f3b2
@ -129,11 +129,9 @@ namespace XNodeEditor {
|
|||||||
else return 208;
|
else return 208;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector2 GetCurrentMousePosition()
|
public Vector2 GetCurrentMousePosition(float yOffset = 10)
|
||||||
{
|
{
|
||||||
var pos = this.target.position + Event.current.mousePosition;
|
return new Vector2(Event.current.mousePosition.x,Event.current.mousePosition.y + yOffset);
|
||||||
pos.x = pos.x - target.position.x;
|
|
||||||
return pos;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Returns color for target node </summary>
|
/// <summary> Returns color for target node </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user