I have a ViewportContainer
node and I wish to pass the mouse event it receives to its Viewport
child. From what I understand from the documentation the _gui_input()
method catch the events and stop the propagation although I was wondering if it was possible to send the events anyway.
I've seen on another post here that it can be achieved with the Viewport.input()
method although the lack of documentation makes it difficult to understand what it does.
I tried something like this anyway :
onready var viewport = $"Viewport"
func _gui_input(event):
viewport.input(event)
In my viewport I have a child node Camera2D trying to catch those events with the _unhandled_input()
method.