Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update migration guide for PRs 9419 and 9604 #822

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -474,7 +474,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 @@ -664,11 +664,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
Loading