Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubViewports do not take inputs #9950

Closed
NullNeska opened this issue Jul 28, 2017 · 8 comments
Closed

SubViewports do not take inputs #9950

NullNeska opened this issue Jul 28, 2017 · 8 comments

Comments

@NullNeska
Copy link

Operating system or device - Godot version:
Windows 10, Godot 3.0.alpha1

Issue description:
A subviewport that i made, as a child of a viewport container wont take any inputs at all.

Steps to reproduce:
Make a viewportcontainer, make a viewport as a child of it. try to make inputs happen on any node in the viewport or the viewport itself. _input(event) is not ran. not even set_process_input(true) fixes it.

@Zylann
Copy link
Contributor

Zylann commented Jul 29, 2017

Is it happening in 2.1.3 too?

@reduz
Copy link
Member

reduz commented Jul 29, 2017 via email

@NullNeska
Copy link
Author

I read elsewhere it was automatic but this is fine too, not a big deal.

@reduz
Copy link
Member

reduz commented Jul 29, 2017 via email

@vnen
Copy link
Member

vnen commented Jul 29, 2017

Documentation says that "subviewports" (i.e. viewports that are child of a control) receive automatic input, while "render targets" does not.

@daviel
Copy link

daviel commented Apr 24, 2019

I think this problem persists in a way please see my post here: https://www.reddit.com/r/godot/comments/bewxc7/viewports_with_input_events/

@FilipLundby
Copy link

FilipLundby commented Jan 5, 2020

I'm experiencing this issue in 3.2.beta4. Input is not disabled on the viewport node.

Sample project:
ViewportCamera.zip

A workaround is to use signals from outside the viewport, to trigger actions inside the viewport.

@KoBeWi
Copy link
Member

KoBeWi commented Jan 14, 2022

Seems fixed in 3.5.
The above project is unrelated, the viewport isn't rendered anywhere, so it won't receive input. The issue is about ViewportContainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants