bevy 0.19.0-rc.1

A refreshingly simple data-driven game engine and app framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This example demonstrates how to automatically serialize schedule data.

use bevy::{dev_tools::schedule_data::plugin::*, prelude::*};

fn main() {
    App::new()
        .add_plugins((DefaultPlugins, SerializeSchedulesPlugin::default()))
        // This resource is only necessary to put the output in a nice spot for the example code.
        // By default, this lands at "<working directory>/app_data.ron".
        .insert_resource(SerializeSchedulesFilePath(
            "examples/dev_tools/app_data.ron".into(),
        ))
        .run();
}