Closed keis closed 5 months ago
@keis Can you give me some more information about this feature? I'm not familiar with "serialize" and having trouble finding documentation. What's the expected behavior?
Or rather, why are using the "serialize" feature?
I'm not really sure tbh, the feature gets enabled by another dependency, leafwing-input-manager, in my project.
I can see that this feature does indeed changing the name component is some way https://github.com/bevyengine/bevy/blob/main/crates/bevy_core/src/name.rs#L25
Yah I've been trying to figure it out from Bevy code, but it's very strange.
It seems like bevy_scene
uses "serialize" by default, which guards the serialize_ron
function used by Moonshine. Without it, Bevy cannot serialize as far as I can tell (I see no alternative serialization code path).
But this feature isn't enabled by default at the root crate. I'm not sure why it isn't, or what enabling it changes.
So I'm not sure what the intent behind the feature is, or what the alternative solution would be.
Based on my investigation, this is a known issue: https://github.com/bevyengine/bevy/issues/12001
I'm gonna close this one, but feel free to open a new issue if it's still a problem after 0.13.1
Trying to load a save file with name components results in the following error but only when the bevy serialize feature is enabled
These modifications to the example should be enough to showcase the problem