Skip to content

Commit

Permalink
Various migration guide fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 1, 2024
1 parent db32f43 commit 71d6fbd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 33 deletions.
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>| {
// ...
});
```

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
The `bevy/wgpu_trace` and `bevy_render/wgpu_trace` features have been removed, as WGPU tracing is now enabled during the creation of `bevy_render::RenderPlugin`.

{% callout(type="info") %}
At the time of writing, WGPU has not reimplemented tracing support, so WGPU tracing will not currently work. However, once WGPU has reimplemented tracing support, the steps below should be sufficient to continue generating WGPU traces.
Note: At the time of writing, WGPU has not reimplemented tracing support, so WGPU tracing will not currently work. However, once WGPU has reimplemented tracing support, the steps below should be sufficient to continue generating WGPU traces.

You can track the progress of WGPU tracing being reimplemented at [gfx-rs/wgpu#5974](https://github.com/gfx-rs/wgpu/issues/5974).
{% end %}

To continue generating WGPU traces:

Expand Down

This file was deleted.

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;
```
12 changes: 0 additions & 12 deletions release-content/0.15/migration-guides/_guides.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ prs = [14211]
areas = ["Core", "Editor"]
file_name = "14211_Rename_bevy_corenameDebugName_to_bevy_corenameNameOrEntity.md"

[[guides]]
title = "Add `core` and `alloc` over `std` Lints"
prs = [15281]
areas = ["Cross-Cutting"]
file_name = "15281_Add_core_and_alloc_over_std_Lints.md"

[[guides]]
title = "Remove the `Component` trait implementation from `Handle`"
prs = [15796]
Expand Down Expand Up @@ -490,12 +484,6 @@ prs = [16139]
areas = ["ECS", "Reflection"]
file_name = "16139_ReflectBundleremove_improvement.md"

[[guides]]
title = "feat: Add `World::get_reflect()` and `World::get_reflect_mut()`"
prs = [14416]
areas = ["ECS", "Reflection"]
file_name = "14416_feat_Add_Worldget_reflect_and_Worldget_reflect_mut.md"

[[guides]]
title = "Use crate: `disqualified`"
prs = [15372]
Expand Down

0 comments on commit 71d6fbd

Please sign in to comment.