bevy-inspector-egui
bevy-inspector-egui copied to clipboard
How to enable "picking" feature from bevy_egui?
I tried adding bevy_egui as a dependency (even though I only use it via inspector):
# Cargo.toml
[dependencies]
# ...
bevy_egui = { version = "0.34.0", features = ["picking"], optional = true }
bevy-inspector-egui = { version = "0.31.0", optional = true }
# ...
[features]
# ...
inspector = ["dep:bevy-inspector-egui", "bevy_egui/picking"]
# ...
(inspector feature is enabled)
Also I set EguiContextSettings::capture_pointer_input = true in my code. (Even thought it seems to be true by default.)
I still get the old behavior where clicking on inspector is also registered as a click on my UI. I was hoping to prevent this by enabling "bevy_egui/picking".