0 votes

the scene structure like that:

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 .

asked Oct 18, 2018 in Engine by zhengying (19 points)
reshown Oct 18, 2018 by kidscancode

Does the viewport has gui_disable_input unchecked?

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.