Skip to main content

schedule_data/
schedule_data.rs

1//! This example demonstrates how to automatically serialize schedule data.
2
3use bevy::{dev_tools::schedule_data::plugin::*, prelude::*};
4
5fn main() {
6    App::new()
7        .add_plugins((DefaultPlugins, SerializeSchedulesPlugin::default()))
8        // This resource is only necessary to put the output in a nice spot for the example code.
9        // By default, this lands at "<working directory>/app_data.ron".
10        .insert_resource(SerializeSchedulesFilePath(
11            "examples/dev_tools/app_data.ron".into(),
12        ))
13        .run();
14}