Replies: 2 comments 1 reply
-
I get the exact same error when trying to serialize a SceneBundle. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, Bevy does not serialize asset handles. Even if it did, you would need an asset server to deserialize them. I believe this is being addressed by the scene rework described here. In your case you could filter out the components containing handles with the DynamicSceneBuilder, make a custom component that serializes to an asset path, and then generate the handles with some startup system from your component. You can also forego Bevy scenes and write a custom asset loader that handles a custom serializable asset. |
Beta Was this translation helpful? Give feedback.
-
My code:
But I get error
called
Result::unwrap()on an
Errvalue: Message("Type 'std::sync::Arc<bevy_asset::handle::StrongHandle>' did not register ReflectSerialize")
What should I do, if I want to load an entity in the scene with
bevy::sprite::Mesh2dHandle
to add a mesh to entity?Beta Was this translation helpful? Give feedback.
All reactions