Skip to content

MapEntities is not called for Components #18956

Closed
@Zeenobit

Description

@Zeenobit

Bevy version

0.16

What you did

From my testing, it doesn't seem like MapEntities is being called for components as it used to.

I maintain the moonshine-save library, and this specific test is failing for me:

https://github.com/Zeenobit/moonshine_save/blob/bevy-0.16/tests/basic.rs

What went wrong

After some debugging, I realized MapEntities is not being called at all. Looking at this CL:
3c8fae2#diff-717fbf581c75ed1fc65c9755af2bf8a2ddc97c02e89f4044f86efa70a2ea4260L110
(see dynamic_scene.rs, write_to_world_with)

It looks like this functionality was removed in favor of relations:

To me, it seems like the check for map entities is just missing. I don't see why we would support it for resources (further below in the function) and not for components.

But I wanted to check before opening a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and events

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions