I can create a node on its own with the following code:
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseMotion:
and have it work and giving me the following output when I move the mouse:
but when I paste this exact same code into my player script, it only triggers when I run the player scene on it's own with F6, but running the game with the main scene (F5) with the player in it it never triggers. I have already checked if I have used the function
"set_input_as_handled()" somewhere in another script with Ctrl+Shift+F, and there is none.
Any help much appreciated. Thank you.