-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Description
What problem does this solve or what need does it fill?
It would be nice if I could get the names and types of fields in a struct, without creating an instance of that struct.
What solution would you like?
Static methods on Struct
, Tuple
, etc.
What alternative(s) have you considered?
I could probably make my own macro to get just the info I need. It just feels like this is something that should be in a more general-purpose reflection crate.
Additional context
My personal use case was an experimental entity-first ORM. I was hoping to use bevy_reflect to help generate migrations, but I needed this feature to make it work that way.
I already scrapped that whole idea in favor of a headless CMS, but I'm sure this would be useful for others.
Metadata
Metadata
Assignees
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use