Skip to content

Commit

Permalink
Update Scene Example to Use scn.ron File (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jan 28, 2021
1 parent 5146112 commit cc9ed52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/bevy_scene/src/scene_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ impl AssetLoader for SceneLoader {
}

fn extensions(&self) -> &[&str] {
&["scn"]
&["scn", "scn.ron"]
}
}
2 changes: 1 addition & 1 deletion examples/scene/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl FromResources for ComponentB {

fn load_scene_system(asset_server: Res<AssetServer>, mut scene_spawner: ResMut<SceneSpawner>) {
// Scenes are loaded just like any other asset.
let scene_handle: Handle<DynamicScene> = asset_server.load("scenes/load_scene_example.scn");
let scene_handle: Handle<DynamicScene> = asset_server.load("scenes/load_scene_example.scn.ron");

// SceneSpawner can "spawn" scenes. "Spawning" a scene creates a new instance of the scene in the World with new entity ids.
// This guarantees that it will not overwrite existing entities.
Expand Down

0 comments on commit cc9ed52

Please sign in to comment.