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

Physics objects don't detect the mouse if inside a sub-viewport #31802

Closed
YeldhamDev opened this issue Aug 30, 2019 · 1 comment · Fixed by #31825
Closed

Physics objects don't detect the mouse if inside a sub-viewport #31802

YeldhamDev opened this issue Aug 30, 2019 · 1 comment · Fixed by #31825
Milestone

Comments

@YeldhamDev
Copy link
Member

YeldhamDev commented Aug 30, 2019

Godot version:
ba854bb

Issue description:
Physics objects (like Area2D, for example) inside sub-viewports aren't detecting any mouse inputs.

This was supposedly fixed in 26d33d1, but it's still reproducible as of now.

EDIT: _unhandle_inputs are also not being detected at all.

@lukaskotik
Copy link

Was it really fixed? In 3.2.1 I still have to use

func _input(event):
    $viewport.unhandled_input(event)

and if the scaling or size of viewport is different than is the project setting, event position have to first transformed.

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

Successfully merging a pull request may close this issue.

2 participants