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

There is no order in calling method _input_event() of Area2D. Expectation is order by node position in sence tree #101956

Open
iiiron opened this issue Jan 23, 2025 · 3 comments

Comments

@iiiron
Copy link

iiiron commented Jan 23, 2025

Tested versions

4.3-stable

System information

MacOS 15

Issue description

See the picture below, i have created a minimal reproduction project following.

This issue make it impossible to control the propagation order of input event.

Image

Steps to reproduce

NA

Minimal reproduction project (MRP)

buttest.zip

@AThousandShips
Copy link
Member

AThousandShips commented Jan 23, 2025

This is intentional for performance reasons, see Viewport.physics_object_picking_sort

Should maybe be documented in more places

@iiiron
Copy link
Author

iiiron commented Jan 23, 2025

oh~ thank you very much, it has troubled me for a long time.

This is very important infomation, it should be written in InputEvent

Is the following description is not right in defualt? until change Viewport.physics_object_picking_sort to TRUE

Image

@AThousandShips
Copy link
Member

That part links to ObjectPicking which includes this information, so that part should be clear enough

It should be mentioned in _input_event though

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

2 participants