Skip to content

Allow serializing/deserializing Entity outside World #228

Closed
@Rua

Description

@Rua

When trying to serialise a type that contains an Entity reference, outside a World, I get a panic with the error "No entity serializer set". Serializing an Entity reference requires run_as_context to be called in order to provide the thread-local variable containing the Canon. This function is private, which means it's not possible to serialize/deserialize any type that contains Entity if it's not in a component in the World.

Could something be added to allow serde of Entity outside a World?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions