Hi all.
I added this script to RigidBody2D, but it doesn’t work at all.
extends RigidBody2D
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
print(event)
if event == InputEventMouseButton:
print('qwe')
It only outputs event to the console, but does not reach print(‘qwe’)
HELP ME PLEASE!!!