Skip to content

Commit

Permalink
Update migration guide for PRs 9419 and 9604 (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett authored Nov 8, 2023
1 parent a149320 commit 169d4f8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/learn/migration-guides/0.11-0.12/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ let old = |id: Entity, world: &mut World| {
/* ... */
};

let new = |mut entity: EntityMut| {
let new = |mut entity: EntityWorldMut| {
let id = entity.id();
let world = entity.into_world_mut();
/* ... */
Expand Down Expand Up @@ -669,11 +669,9 @@ app.configure_schedules(build_settings);
<div class="migration-guide-area-tag">Reflection</div>
</div>

**Note for maintainers: ensure that the guide for #9604 is updated accordingly.**

Removed the method `EntityRef::world`, to fix a soundness issue with queries. If you need access to `&World` while using an `EntityRef`, consider passing the world as a separate parameter.

`EntityMut` can no longer perform ‘structural’ world mutations, such as adding or removing components, or despawning the entity. Additionally, `EntityMut::world`, `EntityMut::world_mut` , and `EntityMut::world_scope` have been removed.
`EntityMut` can no longer perform ‘structural’ world mutations, such as adding or removing components, or despawning the entity. Additionally, `EntityMut::world`, `EntityMut::world_mut`, `EntityMut::into_world_mut`, and `EntityMut::world_scope` have been removed.
Instead, use the newly-added type `EntityWorldMut`, which is a helper type for working with `&mut World`.

### [Make builder types take and return `Self`](https://github.com/bevyengine/bevy/pull/10001)
Expand Down

0 comments on commit 169d4f8

Please sign in to comment.