You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let scene = DynamicScene::from_world(&world, type_registry);
let ron = scene.serialize_ron(type_registry)?;
If you want to be able to serialize scenes where not every component is serializable and they are just skipped, I believe this would need support from bevy itself.
Until then you can just call .register_type::<Option<Viewport>>() once in your app to fix it, until 0.9 gets released with bevyengine/bevy#5747.
ah yes my confusion is that bevy already skips anything that doesn't reflect component but just because it reflects component doesn't mean it reflects serializable.
I am working on a from_world that will only serialize an entity matching the query, if I get it working ill submit a pull that will allow people to use your editor in a way it won't serialise the editor-specific entities such as the cameras.
when saving a scene it fails because "Type 'core::option::Option<bevy_render::camera::camera::Viewport>' did not register ReflectSerialize.
this feels like it should no prevent the saving a scene and just skip the missing types
The text was updated successfully, but these errors were encountered: