-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
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
The CollisionObject2D in the Child Window node does not respond to any _input_event signals. #91667
Comments
You deselected the field while it was still uploading, please edit your post and upload the MRP again, making sure you leave it open until it's fully uploaded |
Have you set physics_object_picking = true? |
Yes. They aways keep it in its default state. |
Please note, that I have tested your MRP and I was able to make it work by enabling physics object picking in the newly created window like this: func _ready():
get_viewport().gui_embed_subwindows = false;
var window : Window = Window.new();
self.add_child(window);
window.position = Vector2(get_window().position);
window.physics_object_picking = true
window.add_child(AREA.instantiate()); Does this solve your problem? |
Thank you, it was really my mistake, thanks for the answer |
Closing as per above as this was not a bug, thank you for your report |
Tested versions
v4.2.2.stable.official [15073af]
System information
Godot v4.2.stable - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 30.0.13014.10001) - AMD Ryzen 5 5500U with Radeon Graphics (12 Threads)
Issue description
After creating a Window node, I put an Area2D with CollisionShape2D under the child node of the Window, but Area2D does not trigger _input_event, mouse_entered, etc
Area2D's input_pickable is still false, and Button inside WindowViewport will still trigger the "pressed" signal normally
Area2D has a handle_input_locally property of true and has a default collision level.
Steps to reproduce
MainScene Script:
res://Area.tscn :
The console doesn't output anything, is this a bug???
Minimal reproduction project (MRP)
Demo.zip
The text was updated successfully, but these errors were encountered: