-
-
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
Description
What problem does this solve or what need does it fill?
Currently for entities we serialize only id:
| serializer.serialize_u32(self.id()) |
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.
Reactions are currently unavailable
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