Skip to content

bevy-inspector-egui does not block picking events unless bevy_egui is explicitly added as a dependency #276

@fedoraiver

Description

@fedoraiver

I ran into a strange issue when using bevy-inspector-egui together with bevy_picking.

The egui inspector UI does not block picking events on lower entities unless I explicitly add bevy_egui as a dependency in my Cargo.toml. If I only include bevy-inspector-egui, the egui windows works , but pointer events will fall through to underlying pickable entities in the world.

Adding bevy_egui to my dependencies (even without using it directly) solves the problem and allows the UI to properly block pointer interaction with the world.

I haven’t read through the plugin’s source code in detail, so I might be missing something obvious. Just wanted to report this in case it’s unexpected behavior or could help improve compatibility out of the box.

Let me know if you need a minimal reproducible example — I’d be happy to provide one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions