- Out of the box serialization Through [
plugins
] for components
// Component <-> WrapperComponent
.add_plugins(SerializeComponentFor::<AsyncCollider, ColliderFlag>::default())
// Asset <-> WrapperComponent
.add_plugins(SerializeAssetFor::<MeshMaterial3d<StandardMaterial>, MaterialFlag3d>::default())
// Query -> Component,
.add_plugins(SerializeQueryFor::<Linkage, ImpulseJoint, JointFlag>::default())
- Serialization of groups of enities that compose an asset into their singular asset equivillent, and vice-versa
A visualization util to list serializable/unserializable components(W.I.P) [bevy_serialization_core]
demo_gif.webm
//(entity_0, ... entity_n) -> Asset
// [UNIMPLEMENTED] Asset -> (entity_0, ... entity_n)
.add_plugins(SerializeManyAsOneFor::<LinkQuery, Urdf>::default())
assemble_demo.mp4
-
bevy_serialization_extras is built ontop of
bevy_reflect
, not serde. No need to double dip to serialize. -
bevy_serialization_extras allows regular serialization into .ron via [
moonshine_save
] + allows converting serializables into more stable file formats via bevy_serialization_assemble.
serde serialization:
world <--> scene.json
bevy_serialziation_extras:
(object) <--> (partA, partB) <--> .file
(person) (body + arm_0...arm_n + leg_0..leg_n) <--> .file
world <--> scene.ron
This is good for creating editors in bevy.
[moonshine_save
] for the save/load backend of this library
See sub-crate /examples
files for example usage.