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

World inspector for hecs #85

Open
nuts-rice opened this issue Jan 15, 2024 · 1 comment
Open

World inspector for hecs #85

nuts-rice opened this issue Jan 15, 2024 · 1 comment

Comments

@nuts-rice
Copy link
Sponsor Contributor

Would it be a good idea to have a egui window that keeps track of entities and their associated components within some of the more complex demos like perspective camera and ldtk?
Perhaps not as simple and clean as a "comfy" straightforward demo, but it could serve as a debugging tool going forward with more dense level and game design.

@darthdeus
Copy link
Owner

I'm not sure if this is possible to do in general without some kind of reflection API. I vaguely remember discussing this some time ago and being told that the only way you can do this is if you register the components explicitly.

Which could definitely work, but it makes it a bit more tricky to implement.

I'd say a good way to start with this would be to just make a prototype that does this. Since comfy doesn't hide any of its internals I don't think there's any reason why this couldn't be a separate crate.

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