+1 vote

Is there a way to forward the keyboard input to sub-viewports? According to the documentation, this should happen automatically but it does not work for me. It would be nice if one could call _input(event) on specific nodes explicitly. However, this does not seem to be intended.

Context: I would like to have a TextEdit (in a sub-viewport) as texture in the parent 3D scene. Btw, calling grab_focus() in the sub-viewport also does not lead to getting input events.

Thanks for suggestions.

asked Aug 25, 2018 in Engine by Martin Eigel (36 points)
edited Aug 25, 2018 by Martin Eigel

1 Answer

0 votes

Ok, I missed that Viewport.input(event) can be called which solves this issue for me. Nevertheless, at least when Viewport is set as render target, it won't receive input events automatically.

answered Aug 26, 2018 by meigel (24 points)
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.