Skip to content

Fully serialize entities #6143

Closed
Closed
@Shatur

Description

@Shatur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions