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;
|
||||
}
|
||||
|
||||
public Vector2 GetCurrentMousePosition()
|
||||
public Vector2 GetCurrentMousePosition(float yOffset = 10)
|
||||
{
|
||||
var pos = this.target.position + Event.current.mousePosition;
|
||||
pos.x = pos.x - target.position.x;
|
||||
return pos;
|
||||
return new Vector2(Event.current.mousePosition.x,Event.current.mousePosition.y + yOffset);
|
||||
}
|
||||
|
||||
/// <summary> Returns color for target node </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user