-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fully serialize entities #6143
Copy link
Copy link
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
Currently for entities we serialize only
id:bevy/crates/bevy_ecs/src/entity/serde.rs
Line 9 in b995b46
But this is not very expected behavior. For example, if you serialize an entity, send it over the network, and map it to an entity on another machine, this will not work correctly, because generation is skipped for serialization.
What solution would you like?
Fully serialize entities. It may only be redundant for scenes, but Bevy use DynamicEntity for them anyway.