Function moonshine_save::save::save_all
source · pub fn save_all() -> SavePipelineBuilder<()>
Expand description
Creates a SavePipelineBuilder
which saves all entities unconditionally.
§Warning
Be careful about using this builder as some entities and/or components may not be safely serializable.
§Example
use bevy::prelude::*;
use moonshine_save::prelude::*;
let mut app = App::new();
app.add_plugins((MinimalPlugins, SavePlugin))
.add_systems(PreUpdate, save_all().into_file("example.ron"));