Skip to content

Commit 3c31fae

Browse files
Extend migration guide for HierarchyQueryExt (#2084)
1 parent de4d708 commit 3c31fae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

release-content/0.16/migration-guides/17398_Relationships_nonfragmenting_onetomany.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
- Replace calls to `.despawn_recursive()` with `.despawn()`.
55
- Replace calls to `.despawn_descendants()` with `.despawn_related::<Children>()`.
66
- If you have any calls to `.despawn()` which depend on the children being preserved, you’ll need to remove the `Children` component first.
7+
8+
Because relationships are now part of `bevy_ecs` itself, all methods from the previous `HierarchyQueryExt` extension trait are
9+
now inherent methods on `Query`.
10+
While these have mostly been migrated unchanged, `parent` is now `related` and `children` now `relationship_sources`,
11+
as these methods work for any relationship, not just parent-child ones.

0 commit comments

Comments
 (0)