//! Hot reloading allows you to modify assets files to be immediately reloaded while your game is1//! running. This lets you immediately see the results of your changes without restarting the game.2//! This example illustrates hot reloading mesh changes.3//!4//! Note that hot asset reloading requires the [`AssetWatcher`](bevy::asset::io::AssetWatcher) to be enabled5//! for your current platform. For desktop platforms, enable the `file_watcher` cargo feature.67use bevy::prelude::*;89fn main() {10App::new()11.add_plugins(DefaultPlugins)12.add_systems(Startup, setup)13.run();14}1516fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {17// Load our mesh:18let scene_handle =19asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/torus/torus.gltf"));2021// Any changes to the mesh will be reloaded automatically! Try making a change to torus.gltf.22// You should see the changes immediately show up in your app.2324// mesh25commands.spawn(SceneRoot(scene_handle));26// light27commands.spawn((28DirectionalLight::default(),29Transform::from_xyz(4.0, 5.0, 4.0).looking_at(Vec3::ZERO, Vec3::Y),30));31// camera32commands.spawn((33Camera3d::default(),34Transform::from_xyz(2.0, 2.0, 6.0).looking_at(Vec3::ZERO, Vec3::Y),35));36}373839