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

Isolation of Bevy-independent code #37

Closed
ClydeHobart opened this issue Nov 6, 2021 · 1 comment
Closed

Isolation of Bevy-independent code #37

ClydeHobart opened this issue Nov 6, 2021 · 1 comment

Comments

@ClydeHobart
Copy link

Is it at all possible to restructure things such that the egui functionality isn't as tethered to the bevy ECS model? I would like to utilize this crate in a bevy project, but to to me it seems more natural for this inspection functionality to basically consist of:

fn inspect<I: Inspectable>(i: &I, ui: &mut egui::Ui) -> bool;

fn inspect_mut<I: Inspectable>(i: &mut I, ui: &mut egui::Ui) -> bool;

The base intended use case for this is just to modify my app's preferences, which lives in a ResMut, not a component.

I understand this constitutes a large change, and it probably makes more sense for any result of this change to exist as a fork rather than a direct change to this repo.

@ClydeHobart
Copy link
Author

Upon closer inspection, this appears to be implemented. Apologies for the distraction.

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

1 participant