The Node2d in viewport can't received event , _input(event) not called

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zhengying

the scene structure like that:
Node
–Viewport
----Node2d

the Node2d can’t receive any event , _input(event) never called.
but when I put Node2d outside Viewport the event work well.

what am i missing? Any one who can give me a hint .

Does the viewport has gui_disable_input unchecked?

Zylann | 2018-10-19 17:31

Sorry! so late to update the question,
My question have been resolved, I use viewport.input(event) to forward the event in it’s parent.

zhengying | 2018-10-31 07:52