Function moonshine_save::save::save
source · pub fn save<F: QueryFilter>() -> SavePipelineBuilder<F>
Expand description
Creates a SavePipelineBuilder
which saves all entities with given entity filter F
.
During the save process, all entities that match the given query F
will be selected for saving.
§Example
use bevy::prelude::*;
use moonshine_save::prelude::*;
let mut app = App::new();
app.add_plugins((MinimalPlugins, SavePlugin))
.add_systems(PreUpdate, save::<With<Save>>().into_file("example.ron"));