-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
21 additions
and
33 deletions.
There are no files selected for viewing
28 changes: 14 additions & 14 deletions
28
...0.15/migration-guides/13859_Change_SceneInstanceReady_to_trigger_an_observer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
If you have a system which read `SceneInstanceReady` events: | ||
If you have a system which reads `SceneInstanceReady` events, it must be rewritten as an observer or entity observer. | ||
|
||
> | ||
`fn ready_system(ready_events: EventReader<'_, '_, SceneInstanceReady>) {` | ||
```rust | ||
// 0.14 | ||
fn ready_system(ready_events: EventReader<'_, '_, SceneInstanceReady>) { | ||
// ... | ||
} | ||
|
||
|
||
It must be rewritten as an observer: | ||
|
||
> | ||
`commands.observe(|trigger: Trigger<SceneInstanceReady>| {` | ||
|
||
Or, if you were expecting the event in relation to a specific entity or entities, as an entity observer: | ||
|
||
> | ||
`commands.entity(entity).observe(|trigger: Trigger<SceneInstanceReady>| {` | ||
// 0.15 | ||
commands.observe(|trigger: Trigger<SceneInstanceReady>| { | ||
// ... | ||
}); | ||
commands.entity(entity).observe(|trigger: Trigger<SceneInstanceReady>| { | ||
// ... | ||
}); | ||
``` |
1 change: 0 additions & 1 deletion
1
...15/migration-guides/14416_feat_Add_Worldget_reflect_and_Worldget_reflect_mut.md
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
...tion-guides/14842_Replace_the_wgpu_trace_feature_with_a_field_in_bevy_render.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
release-content/0.15/migration-guides/15281_Add_core_and_alloc_over_std_Lints.md
This file was deleted.
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
...ase-content/0.15/migration-guides/15666_Split_out_bevy_mesh_from_bevy_render.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
`bevy_render::mesh::morph::inherit_weights` is now `bevy_render::mesh::inherit_weights` | ||
`bevy_render::mesh::morph::inherit_weights` has been moved to `bevy_render::mesh::inherit_weights`. | ||
|
||
if you were using `Mesh::compute_aabb`, you will need to `use bevy_render::mesh::MeshAabb;` now | ||
`Mesh::compute_aabb` has been moved to the new `MeshAabb` trait. You may need to import it. | ||
|
||
```rust | ||
use bevy::render::mesh::MeshAabb; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters