Skip to content

Commit 656c1f6

Browse files
HierarchyQueryExt release notes (#1757)
Co-authored-by: Viktor Gustavsson <[email protected]>
1 parent 6f0b9cd commit 656c1f6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<!-- Add more tools for traversing hierarchies -->
22
<!-- https://github.com/bevyengine/bevy/pull/15627 -->
33

4-
<!-- TODO -->
4+
We've spruced up the [`HierarchyQueryExt`] [extension trait],
5+
making it easier to traverse entity hierarchies defined by the [`Parent`] and [`Children`] components.
6+
7+
The full set of methods is now:
8+
9+
- `parent` (new)
10+
- `children` (new)
11+
- `root_ancestor` (new)
12+
- `iter_leaves` (new)
13+
- `iter_siblings` (new)
14+
- `iter_descendants`
15+
- `iter_descendants_depth_first` (new)
16+
- `iter_ancestors`
17+
18+
All of these operations were previously possible, but we hope that this API makes working with hierarchies more pleasant, especially for UI and animation.
19+
20+
[`HierarchyQueryExt`]: https://docs.rs/bevy/0.15/bevy/hierarchy/trait.HierarchyQueryExt.html
21+
[`Parent`]: https://docs.rs/bevy/0.15/bevy/hierarchy/struct.Parent.html
22+
[`Children`]: https://docs.rs/bevy/0.15/bevy/hierarchy/struct.Children.html
23+
[extension trait]: https://rust-lang.github.io/rfcs/0445-extension-trait-conventions.html

release-content/0.15/release-notes/_release-notes.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ prs = [15614]
410410
file_name = "15614_Allow_Worldentity_family_of_functions_to_take_multiple_ent.md"
411411

412412
[[release_notes]]
413-
title = "Add more tools for traversing hierarchies"
413+
title = "More tools for traversing hierarchies"
414414
authors = ["@alice-i-cecile"]
415415
contributors = ["@atornity", "@ItsDoot", "@villor"]
416416
prs = [15627]

0 commit comments

Comments
 (0)