You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT:
This is related to the fact that the nodes on scene are inside a SubViewport. I was able to get mouse position from the main viewport and use transform magic to get what I wanted.
Steps to reproduce
See above.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
@KoBeWi How did you do this: "This is related to the fact that the nodes on scene are inside a SubViewport. I was able to get mouse position from the main viewport and use transform magic to get what I wanted."
Also this also applies if the tool tries for get_global_mouse_position().
Edit I figured it out, I needed to do this:
Godot version
f4b0c7a
System information
Windows 10 x64
Issue description
Attach this script to any Node2D on a scene:
Reload scene. It will always print (0, 0).
EDIT:
This is related to the fact that the nodes on scene are inside a SubViewport. I was able to get mouse position from the main viewport and use transform magic to get what I wanted.
Steps to reproduce
See above.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: