-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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?
Currently registering a type only creates a registration for itself. Registering a type will not register the types of its fields. This means every intermediate field type must be manually registered. This would make deserialization difficult to manage for deeply nested structures.
What solution would you like?
Type registration should be recursive. Upon registering a type, it's field types should be registered. This should continue recursively until a value type has been reached, or if a type had already been registered.
This may increase app load times, but provide a much better developer UX when using the TypeRegistry to handle serialization.
What alternative(s) have you considered?
Register every type manually.
MrGVSV, inodentry, LoopyAshy, mrchantey, Jarten0 and 1 more
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
Type
Projects
Status
Done