Skip to content

Commit

Permalink
fxed all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Mar 24, 2024
1 parent 8ca2930 commit b6bc840
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 142 deletions.
137 changes: 0 additions & 137 deletions assets/scenes/tile.scn.ron

This file was deleted.

8 changes: 4 additions & 4 deletions examples/platformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ fn simple_tab_system(mut ui: NonSendMut<EditorUiRef>) {
ui.label("Hello editor");
}

fn configure_editor(mut load_event: EventWriter<MenuLoadEvent>) {
load_event.send(MenuLoadEvent {
path: "scenes/platformer".to_string(),
});
fn configure_editor(mut load_event: EventWriter<EditorEvent>) {
load_event.send(EditorEvent::Load(EditorPrefabPath::File(
"scenes/platformer.scn.ron".to_string()
)));
}

#[derive(Component, Reflect, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion examples/spawn_prefab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
fn setup(mut commands: Commands, _assets: Res<AssetServer>) {
// prefab loaded by adding PrefabLoader component to any entity (it will be parent of prefab) or with prefab bundle
commands
.spawn(PrefabBundle::new("scenes/tile.scn.ron"))
.spawn(PrefabBundle::new("scenes/Scene0.scn.ron"))
.insert(Name::new("Prefab"));

// light
Expand Down

0 comments on commit b6bc840

Please sign in to comment.