Mouse position

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By trafel
:warning: Old Version Published before Godot 3 was released.

How do you get the mouse position relative to the scene offset and not the window offset ?

:bust_in_silhouette: Reply From: vnen

You can use get_local_mouse_pos() from CanvasItem class.

:bust_in_silhouette: Reply From: eaglecat

just call


for more detail