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

work with egui #134

Closed
YoshieraHuang opened this issue May 30, 2022 · 3 comments
Closed

work with egui #134

YoshieraHuang opened this issue May 30, 2022 · 3 comments

Comments

@YoshieraHuang
Copy link
Contributor

Now i want to do mouse selection with this mod and bevy_egui. When i clicked the egui window, the entity is deselected. I know the NoDeselect component is designed to solve this, but the egui windows dont exist in the ecs world. Is there any workaround?

@YoshieraHuang
Copy link
Contributor Author

An idea comes out: An invisible plane with PickableBundle and NoDeselect component, which has same translation and size as the egui window and located just behind the window.

@aevyrie
Copy link
Owner

aevyrie commented May 31, 2022

We use mod_picking with egui by disabling this plugin when egui wants pointer input. Closing this as it's not an issue with this plugin. See also discussion here: bevyengine/bevy#3570.

@aevyrie aevyrie closed this as completed May 31, 2022
@YoshieraHuang
Copy link
Contributor Author

Thank you for the solution.

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

No branches or pull requests

2 participants