bevy/crates/bevy_hierarchy/src
ira 13da481bea Add methods to Query<&Children> and Query<&Parent> to iterate over descendants and ancestors (#6185)
# Objective
Add methods to `Query<&Children>` and `Query<&Parent>` to iterate over descendants and ancestors, respectively.

## Changelog

* Added extension trait for `Query` in `bevy_hierarchy`, `HierarchyQueryExt`
* Added method `iter_descendants` to `Query<&Children>` via `HierarchyQueryExt` for iterating over the descendants of an entity.
* Added method `iter_ancestors` to `Query<&Parent>` via `HierarchyQueryExt` for iterating over the ancestors of an entity.

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-10-31 15:57:50 +00:00
..
components Add methods to Query<&Children> and Query<&Parent> to iterate over descendants and ancestors (#6185) 2022-10-31 15:57:50 +00:00
child_builder.rs Remove outdated uses of single-tuple bundles (#6406) 2022-10-29 18:15:28 +00:00
events.rs Fix some grammatical errors in the docs (#6109) 2022-09-26 21:47:31 +00:00
hierarchy.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
lib.rs Add methods to Query<&Children> and Query<&Parent> to iterate over descendants and ancestors (#6185) 2022-10-31 15:57:50 +00:00
query_extension.rs Add methods to Query<&Children> and Query<&Parent> to iterate over descendants and ancestors (#6185) 2022-10-31 15:57:50 +00:00
valid_parent_check_plugin.rs Add warning when a hierarchy component is missing (#5590) 2022-09-19 16:12:11 +00:00