Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/examples/dev_tools/schedule_data.rs
30632 views
1
//! This example demonstrates how to automatically serialize schedule data.
2
3
use bevy::{dev_tools::schedule_data::plugin::*, prelude::*};
4
5
fn 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
}
15
16