bevy/crates/bevy_hierarchy/src
Alex Saveau a0a14aa615 Support returning data out of with_children (#4708)
# Objective

Support returning data out of with_children to enable the use case of changing the parent commands with data created inside the child builder.

## Solution

Change the with_children closure to return T.

Closes https://github.com/bevyengine/bevy/pull/2817.

---

## Changelog

`BuildChildren::add_children` was added with the ability to return data to use outside the closure (for spawning a new child builder on a returned entity for example).
2022-05-17 22:37:51 +00:00
..
components Split bevy_hierarchy out from bevy_transform (#4168) 2022-03-15 01:54:05 +00:00
child_builder.rs Support returning data out of with_children (#4708) 2022-05-17 22:37:51 +00:00
hierarchy.rs add more logs when despawning entities (#3851) 2022-04-13 23:35:28 +00:00
lib.rs Split bevy_hierarchy out from bevy_transform (#4168) 2022-03-15 01:54:05 +00:00
systems.rs Split bevy_hierarchy out from bevy_transform (#4168) 2022-03-15 01:54:05 +00:00